code: def _parse_args(args):
      """Parses CLI arguments."""
      parser = argparse.ArgumentParser()
      parser.add_argument("--region", type=str, required=True)
      parser.add_argument("--s3_base_uri", type=str, required=True)
      parser.add_argument("--s3_kms_key", type=str)
      parser.add_argument("--run_in_context", type=str)
      parser.add_argument("--pipeline_step_name", type=str)
      parser.add_argument("--pipeline_execution_id", type=str)
      parser.add_argument(
          "--property_references", nargs="+", type=str, default=[]
      )
      parser.add_argument(
          "--serialize_output_to_json",
          default=False,
          type=lambda x: (str(x).lower() == "true"),
      )
      parser.add_argument("--func_step_s3_dir", type=str)
  
      args, _ = parser.parse_known_args(args)
      return args
  
file_path: sagemaker-python-sdk/src/sagemaker/remote_function/invoke_function.py
imports: from __future__ import absolute_import
  import argparse
  import sys
  import json
  import os
  from typing import TYPE_CHECKING
  import boto3
  from sagemaker.remote_function.job import KEY_EXPERIMENT_NAME, KEY_RUN_NAME
  from sagemaker.session import Session
  from sagemaker.s3 import s3_path_join
  from sagemaker.remote_function.errors import handle_error
  from sagemaker.remote_function import logging_config
  from sagemaker.remote_function.core.pipeline_variables import Context
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_args(args) and returns: args