code: def setLayer(self, layer):
          
          if layer == self._layer:
              return False
  
          self._layer = layer
          self.syncLayerData()
  
          return True
docs: Sets the layer that this node is associated with to the given layer.
          
          :param      layer       | <XNodeLayer> || None
          
          :return     <bool> changed