def create_children(self, group, nodes):
        result = []
        actions = []
        children = [node.assemble() for node in nodes]

        def process_actions():
            if actions:
                wag = WorkbenchActionGroup(group=group)
                wag.insert_children(None, actions)
                result.append(wag)
                del actions[:]

        for child in children:
            if isinstance(child, WorkbenchAction):
                actions.append(child)
            else:
                process_actions()
                child.group = group
                result.append(child)

        process_actions()

        return result
Associated directory, if any, with this task
dataset/ETHPy150Open nucleic/enaml/enaml/workbench/ui/menu_helper.py/MenuNode.create_children--crossover with--dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/Task.directory