code: def _get_step_definition_for_test(
      pipeline: Pipeline, skip_pop_fields: list = []
  ) -> dict:
      step_definition = json.loads(pipeline.definition())["Steps"][0]
      # pop out the S3Uri as it may be dynamically changed due to timestamp
      for processing_input in step_definition["Arguments"][
          "ProcessingInputs"
      ]:
          if processing_input["InputName"] in skip_pop_fields:
              continue
          processing_input["S3Input"].pop("S3Uri")
      for output in step_definition["Arguments"][
          "ProcessingOutputConfig"
      ]["Outputs"]:
          if output["OutputName"] in skip_pop_fields:
              continue
          output["S3Output"].pop("S3Uri")
      return step_definition
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/workflow/test_quality_check_step.py
imports: from __future__ import absolute_import
  import json
  import pytest
  from sagemaker.model_monitor import DatasetFormat
  from sagemaker.workflow.parameters import ParameterString
  from sagemaker.workflow.pipeline import Pipeline
  from sagemaker.workflow.pipeline import PipelineDefinitionConfig
  from sagemaker.workflow.quality_check_step import QualityCheckStep, DataQualityCheckConfig, ModelQualityCheckConfig, QualityCheckConfig
  from sagemaker.workflow.steps import CacheConfig
  from sagemaker.workflow.check_job_config import CheckJobConfig
label_desc: Use image node_id 9 for calling a global function with example usage: _get_step_definition_for_test(pipeline, skip_pop_fields) and returns: step_definition