code: def _get_node_type(self):
          
  
          if self.parent is None:
              return self.NODE_ROOT
          elif self.parent.node_type == self.NODE_ROOT:
              return self.NODE_CONTROLLER_ROOT
          elif b".slice" in self.name or b'.partition' in self.name:
              return self.NODE_SLICE
          elif b".scope" in self.name:
              return self.NODE_SCOPE
          else:
              return self.NODE_CGROUP
docs: Returns the current node's type