def addNewTaskGroup(self, *args, **kwargs):
        if isinstance(self.root, Task):
            raise GraphError("Graph root is a task, new task can only be added \
                to task groups")
        return self.root.addNewTaskGroup(*args, **kwargs)

    # def addNewCallable(self, targetCall, *args, **kwargs):
    # '''
    #     '''
    #     task_specific_kwargs = {}
    #     # UNSUPPORTED TASK FIELDS: priority, validator, minNbCores, maxNbCores
    #     task_specific_kwargs['name'] = kwargs.pop('name', '')
    #     task_specific_kwargs['dependencies'] = kwargs.pop('dependencies', {})
    #     task_specific_kwargs['maxRN'] = kwargs.pop('maxRN', 0)
    #     task_specific_kwargs['dispatchKey'] = kwargs.pop('dispatchKey', 0)
    #     task_specific_kwargs['environment'] = kwargs.pop('environment', {})
    #     task_specific_kwargs['ramUse'] = kwargs.pop('ramUse', 0)
    #     task_specific_kwargs['requirements'] = kwargs.pop('requirements', {})
    #     task_specific_kwargs['lic'] = kwargs.pop('lic', '')
    #     task_specific_kwargs['tags'] = kwargs.pop('tags', {})
    #     task_specific_kwargs['timer'] = kwargs.pop('timer', None)
    #     task_specific_kwargs['maxAttempt'] = kwargs.pop('maxAttempt', 1)
    #     self.addNewCallableTaskRAW(targetCall, user_args=args, user_kwargs=kwargs, **task_specific_kwargs)
| Creates a new taskgroup and attach it to the graph's root.
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/puliclient/__init__.py/Graph.addNewTaskGroup