human
Here's a good function header given the following:
I wrote the below code

    if (not partitions):
        return
    job = partitions[0].job
    flist = []
    if ((not hasattr(partition, method_name)) or (not callable(getattr(partition, method_name)))):
        err = ('partition.parallel    got    invalid    method    %s' % method_name)
        raise RuntimeError(err)
    for p in partitions:
        print_args = list(args)
        print_args += [('%s=%s' % (key, dargs[key])) for key in dargs.keys()]
        logging.debug(('%s.%s(%s)' % (str(p), method_name, ',    '.join(print_args))))
        sys.stdout.flush()
        def _run_named_method(function, part=p):
            getattr(part, method_name)(*args, **dargs)
        flist.append((_run_named_method, ()))
    job.parallel(*flist)

What's a good function header?
assistant
#Here's a good function header.

def parallel(partitions, method_name, *args, **dargs):