code: def task_add(self, subsystem, name, pid):
          
  
          args = {
              'subsystem': subsystem,
              'name': name,
              'pid': pid,
          }
  
          self._task_chk.check(args)
          return self._client.json('cgroup.task-add', args)
docs: Add process (with pid) to a cgroup
  
          :param subsystem: the cgroup subsystem (currently support 'memory', and 'cpuset')
          :param name: name of the cgroup
          :param pid: PID to add