code: def testPipeline(self):
      BeamDagRunner().run(
          ranking_pipeline._create_pipeline(
              pipeline_name=self._pipeline_name,
              pipeline_root=self._tfx_root,
              data_root=self._data_root,
              module_file=self._module_file,
              serving_model_dir=self._serving_model_dir,
              metadata_path=self._metadata_path,
              beam_pipeline_args=["--direct_num_workers=1"],
          )
      )
      self.assertTrue(tf.io.gfile.exists(self._serving_model_dir))
      self.assertTrue(tf.io.gfile.exists(self._metadata_path))
  
      metadata_config = metadata.sqlite_metadata_connection_config(
          self._metadata_path
      )
      with metadata.Metadata(metadata_config) as m:
          artifact_count = len(m.store.get_artifacts())
          execution_count = len(m.store.get_executions())
          self.assertGreaterEqual(artifact_count, execution_count)
          self.assertEqual(9, execution_count)
  
file_path: tfx/tfx/examples/ranking/ranking_pipeline_e2e_test.py
imports: import os
  import unittest
  import tensorflow
  from tfx.examples.ranking import ranking_pipeline
  from tfx.orchestration import metadata
  from tfx.orchestration.beam.beam_dag_runner import BeamDagRunner
label_desc: Use image node_id 3 for calling the RankingPipelineTest obj's underlying member method code with example usage: obj.testPipeline() without return types