code: def testCreateRun(self, mock_call):
      # Create a pipeline in dags folder.
      handler_pipeline_path = os.path.join(
          os.environ["BEAM_HOME"],
          self.pipeline_args[labels.PIPELINE_NAME],
      )
      fileio.makedirs(handler_pipeline_path)
  
      flags_dict = {
          labels.ENGINE_FLAG: self.engine,
          labels.PIPELINE_NAME: self.pipeline_name,
      }
      handler = beam_handler.BeamHandler(flags_dict)
      with open(
          handler._get_pipeline_args_path(self.pipeline_name), "w"
      ) as f:
          json.dump(self.pipeline_args, f)
  
      # Now run the pipeline
      handler.create_run()
  
      mock_call.assert_called_once()
      self.assertIn(self.pipeline_path, mock_call.call_args[0][0])
  
imports: import json
  import os
  import subprocess
  import sys
  from unittest import mock
  import tensorflow
  from tfx.dsl.components.base import base_driver
  from tfx.dsl.io import fileio
  from tfx.tools.cli import labels
  from tfx.tools.cli.handler import beam_handler
  from tfx.utils import test_case_utils
label_desc: Use image node_id 16 for calling the BeamHandlerTest obj's underlying member method code with example usage: obj.testCreateRun(mock_call) without return types