code: def setPalette(self, palette):
          
          self._palette = XNodePalette(palette) if palette is not None else None
          self.setDirty()
docs: Sets the palette for this node to the inputed palette.  If None is
          provided, then the scene's palette will be used for this node.
          
          :param      palette | <XNodePalette> || None