Set ColorNode at Colors Module

Hi,

I want to set a color Node programmatically that I have created to the Colors Module in order to display it.
I have created a node like this, but I am not sure how to set it to the Colors module.

colorNode = slicer.vtkMRMLColorNode()
table = slicer.modules.colors.logic().CopyNode(colorNode, “rainbow”)
slicer.mrmlScene.AddNode(table)

Thanks