def _cherry_pick_call(func, *args, **dargs):
 (p_args, p_dargs) = _cherry_pick_args(func, args, dargs)
 return func(*p_args, **p_dargs)

def _cherry_pick_call ( func , * args , ** dargs ) : ( p_args , p_dargs ) = _cherry_pick_args ( func , args , dargs ) return func ( * p_args , ** p_dargs )
cherry picks arguments from args/dargs based on what "func" accepts and calls the function with the picked arguments .