def checked_call(to_call, kwargs):
 try:
  return to_call(**kwargs)
 except TypeError:
  check_call_arguments(to_call, kwargs)
  raise

def checked_call ( to_call , kwargs ) : try : return to_call ( ** kwargs ) except TypeError : check_call_arguments ( to_call , kwargs ) raise
attempt calling a function or instantiating a class with a given set of arguments .