human
I wrote the below code

    if (type(command) == str):
        try:
            command = command.encode(wx.GetDefaultPyEncoding())
        except UnicodeEncodeError:
            pass
    f = io.StringIO(command)
    tokens = []
    try:
        def eater(*args):
            tokens.append(args)
        tokenize.tokenize_loop(f.readline, eater)
    except tokenize.TokenError:
        pass
    return tokens

What's a good function header?

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

def getTokens(command):