def get_common_args(raw_args):
    """Return the model_config.

    The return value includes json with the model resource paths filled in, the pipeline output path, and any
    extra args that were not parsed.
    """
    resources, extra_args = parse_resources_args(raw_args)

    pipeline_output, extra_args = parse_pipeline_output(extra_args)
    model_json, extra_args = parse_config(extra_args, "model", resources)

    return pipeline_output, resources, model_json, extra_args
Return the model_config.

    The return value includes json with the model resource paths filled in, the pipeline output path, and any
    extra args that were not parsed.
    
olive/systems/utils/arg_parser.py