def METHOD_NAME(args):
    job_new_input = {"function": args.function}
    if args.name is not None:
        job_new_input["name"] = args.name
    if args.depends_on is not None:
        job_new_input["dependsOn"] = args.depends_on
    if args.instance_type is not None:
        try_call(process_instance_type_arg, args, False)
        job_new_input["systemRequirements"] = SystemRequirementsDict.from_instance_type(args.instance_type, args.function).as_dict()
    if args.instance_type_by_executable is not None:
        try_call(process_instance_type_by_executable_arg, args)
        job_new_input["systemRequirementsByExecutable"] = SystemRequirementsDict(args.instance_type_by_executable).as_dict()
    if args.head_job_on_demand is not None:
        job_new_input['headJobOnDemand'] = args.head_job_on_demand
    if args.properties is not None:
        try_call(process_properties_args, args)
        job_new_input["properties"] = args.properties
    if args.tags is not None:
        job_new_input["tags"] = args.tags
    if args.extra_args is not None:
        try_call(process_extra_args, args)
        merge(job_new_input,args.extra_args)
    job_new_input["input"] = entry_point_inputs.inputs
    return job_new_input