code: def get_step_args_helper(
      step_args, step_type, use_custom_job_prefix=False
  ):
      execute_job_functions(step_args)
      request_args = step_args.func_args[
          0
      ].sagemaker_session.context.args
  
      if step_type == "Processing":
          if not use_custom_job_prefix:
              request_args.pop("ProcessingJobName", None)
          else:
              request_args["ProcessingJobName"] = strip_timestamp(
                  request_args["ProcessingJobName"]
              )
          request_args.pop("ExperimentConfig", None)
      elif step_type == "Training":
          if "HyperParameters" in request_args:
              request_args["HyperParameters"].pop(
                  "sagemaker_job_name", None
              )
          if not use_custom_job_prefix:
              request_args.pop("TrainingJobName", None)
          else:
              request_args["TrainingJobName"] = strip_timestamp(
                  request_args["TrainingJobName"]
              )
          request_args.pop("ExperimentConfig", None)
      elif step_type == "Transform":
          if not use_custom_job_prefix:
              request_args.pop("TransformJobName", None)
          else:
              request_args["TransformJobName"] = strip_timestamp(
                  request_args["TransformJobName"]
              )
          request_args.pop("ExperimentConfig", None)
      elif step_type == "HyperParameterTuning":
          if not use_custom_job_prefix:
              request_args.pop("HyperParameterTuningJobName", None)
          else:
              request_args[
                  "HyperParameterTuningJobName"
              ] = strip_timestamp(
                  request_args["HyperParameterTuningJobName"]
              )
  
      return request_args
  
imports: from __future__ import absolute_import
  from typing import List, Optional, Union, Callable
  from sagemaker.utils import base_from_name
  from sagemaker.workflow.properties import Properties
  from sagemaker.workflow.retry import RetryPolicy
  from sagemaker.workflow.step_outputs import StepOutput
  from sagemaker.workflow.steps import ConfigurableRetryStep, Step, StepTypeEnum, CacheConfig
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.utilities import execute_job_functions
  from sagemaker.workflow.entities import RequestType
  from sagemaker.remote_function.job import _JobSettings
label_desc: Use image node_id 2 for calling a global function with example usage: get_step_args_helper(step_args, step_type, use_custom_job_prefix) and returns: request_args