def takes_arguments(function, *named_arguments):
 return set(named_arguments).intersection(arguments(function))

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 .