code: def testPipelineDelete(self):
      pipeline_path = os.path.join(
          self._testdata_dir, "test_pipeline_beam_1.py"
      )
      pipeline_name = "chicago_taxi_beam"
      handler_pipeline_path = os.path.join(
          self._beam_home, pipeline_name
      )
  
      # Try deleting a non existent pipeline.
      result = self.runner.invoke(
          cli_group,
          [
              "pipeline",
              "delete",
              "--engine",
              "beam",
              "--pipeline_name",
              pipeline_name,
          ],
      )
      self.assertIn("CLI", result.output)
      self.assertIn("Deleting pipeline", result.output)
      self.assertIn(
          'Pipeline "{}" does not exist.'.format(pipeline_name),
          result.output,
      )
      self.assertFalse(fileio.exists(handler_pipeline_path))
  
      # Create a pipeline.
      self._valid_create_and_check(pipeline_path, pipeline_name)
  
      # Now delete the pipeline.
      result = self.runner.invoke(
          cli_group,
          [
              "pipeline",
              "delete",
              "--engine",
              "beam",
              "--pipeline_name",
              pipeline_name,
          ],
      )
      self.assertIn("CLI", result.output)
      self.assertIn("Deleting pipeline", result.output)
      self.assertFalse(fileio.exists(handler_pipeline_path))
      self.assertIn(
          'Pipeline "{}" deleted successfully.'.format(pipeline_name),
          result.output,
      )
  
imports: import codecs
  import locale
  import os
  from click import testing
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.tools.cli.cli_main import cli_group
  from tfx.utils import io_utils
  from tfx.utils import test_case_utils
label_desc: Use image node_id 6 for calling the CliBeamEndToEndTest obj's underlying member method code with example usage: obj.testPipelineDelete() without return types