def get_create_job_common_args(local_args):
 (arg_names, _, _, _) = inspect.getargspec(create_job_common)
 return dict((item for item in local_args.iteritems() if (item[0] in arg_names)))

def get_create_job_common_args ( local_args ) : ( arg_names , _ , _ , _ ) = inspect . getargspec ( create_job_common ) return dict ( ( item for item in local_args . iteritems ( ) if ( item [ 0 ] in arg_names ) ) )
returns a dict containing only the args that apply for create_job_common returns a subset of local_args .