code: def get_cgroup(fullpath):
      
      # Canonicalize symbolic links
      fullpath = os.path.realpath(fullpath)
  
      status = SubsystemStatus()
      name = None
      for name, path in status.paths.items():
          if path in fullpath:
              break
      else:
          raise Exception('Invalid path: ' + fullpath)
      subsys = _get_subsystem(name)
  
      return CGroup(subsys, fullpath)
docs: It returns a CGroup object which is pointed by the fullpath.