code: def testDeletePipeline(self):
      # First create a pipeline.
      flags_dict = {
          labels.ENGINE_FLAG: self.engine,
          labels.PIPELINE_DSL_PATH: self.pipeline_path,
      }
      handler = vertex_handler.VertexHandler(flags_dict)
      handler.create_pipeline()
  
      # Now delete the pipeline created aand check if pipeline folder is deleted.
      flags_dict = {
          labels.ENGINE_FLAG: self.engine,
          labels.PIPELINE_NAME: self.pipeline_name,
      }
      handler = vertex_handler.VertexHandler(flags_dict)
      handler.delete_pipeline()
      handler_pipeline_path = os.path.join(
          handler._handler_home_dir, self.pipeline_name
      )
      self.assertFalse(fileio.exists(handler_pipeline_path))
  
imports: import os
  import sys
  from unittest import mock
  from google.cloud import aiplatform
  from google.cloud.aiplatform import pipeline_jobs
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.tools.cli import labels
  from tfx.tools.cli.handler import vertex_handler
  from tfx.utils import test_case_utils
label_desc: Use image node_id 9 for calling the VertexHandlerTest obj's underlying member method code with example usage: obj.testDeletePipeline() without return types