human
I wrote the below code

    @inlineCallbacks
    def _run_command(cmd, cmdname, args, raw_string, cmdset, session, player):
        "\n                                Helper    function:    This    initializes    and    runs    the    Command\n                                instance    once    the    parser    has    identified    it    as    either    a    normal\n                                command    or    one    of    the    system    commands.\n\n                                Args:\n                                                cmd    (Command):    Command    object.\n                                                cmdname    (str):    Name    of    command.\n                                                args    (str):    Extra    text    entered    after    the    identified    command.\n                                                raw_string    (str):    Full    input    string.\n                                                cmdset    (CmdSet):    Command    sert    the    command    belongs    to    (if    any)..\n                                                session    (Session):    Session    of    caller    (if    any).\n                                                player    (Player):    Player    of    caller    (if    any).\n\n                                Returns:\n                                                deferred    (Deferred):    this    will    fire    with    the    return    of    the\n                                                                command's    `func`    method.\n\n                                Raises:\n                                                RuntimeError:    If    command    recursion    limit    was    reached.\n\n                                "
        global _COMMAND_NESTING
        try:
            cmd.caller = caller
            cmd.cmdstring = cmdname
            cmd.args = args
            cmd.cmdset = cmdset
            cmd.session = session
            cmd.player = player
            cmd.raw_string = raw_string
            if (hasattr(cmd, 'obj')...

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

@inlineCallbacks
def cmdhandler(called_by, raw_string, _testing=False, callertype='session', session=None, cmdobj=None, cmdobj_key=None, **kwargs):