code: def testPatcher(self, mock_run):
      patcher = beam_dag_runner_patcher.BeamDagRunnerPatcher()
      with patcher.patch() as context:
          beam_dag_runner.BeamDagRunner().run(
              tfx_pipeline.Pipeline(_PIPELINE_NAME, "")
          )
          mock_run.assert_not_called()
          self.assertEqual(
              context[patcher.PIPELINE_NAME], _PIPELINE_NAME
          )
  
imports: from unittest import mock
  import tensorflow
  from tfx.orchestration import pipeline
  from tfx.orchestration.beam import beam_dag_runner
  from tfx.tools.cli.handler import beam_dag_runner_patcher
label_desc: Use image node_id 1 for calling the BeamDagRunnerPatcherTest obj's underlying member method code with example usage: obj.testPatcher(mock_run) without return types