code: def _get_controller_type(self):
          
  
          if self.node_type == self.NODE_CONTROLLER_ROOT and self.name in self.CONTROLLERS:
              return self.name
          elif self.parent:
              return self.parent.controller_type
          else:
              return None
docs: Returns the current node's controller type