def takes_arguments(function, *named_arguments):
    return set(named_arguments).intersection(arguments(function))
Returns the arguments that a function takes from a list of requested arguments
dataset/ETHPy150Open timothycrosley/hug/hug/introspect.py/takes_arguments