def add_subprocesses(self, procdict):
if isinstance(procdict, Process):<EOL><INDENT>try:<EOL><INDENT>name = procdict.name<EOL><DEDENT>except:<EOL><INDENT>name = '<STR_LIT:default>'<EOL><DEDENT>self.add_subprocess(name, procdict)<EOL><DEDENT>else:<EOL><INDENT>for name, proc in procdict.items():<EOL><INDENT>self.add_subprocess(name, proc)<EOL><DEDENT><DEDENT>
Adds a dictionary of subproceses to this process.

        Calls :func:`add_subprocess` for every process given in the
        input-dictionary. It can also pass a single process, which will
        be given the name *default*.

        :param procdict:    a dictionary with process names as keys
        :type procdict:     dict