def arguments(function, extra_arguments=0):
    if not hasattr(function, '__code__'):
        return ()

    return function.__code__.co_varnames[:function.__code__.co_argcount + extra_arguments]
Returns the name of all arguments a function takes
dataset/ETHPy150Open timothycrosley/hug/hug/introspect.py/arguments