class_docstr: Helper methods for Vertex Handler.
class_docstr_tok: ["Helper","methods","for","Vertex","Handler","."]
docstr: Compiles pipeline into Kubeflow V2 Pipelines spec.
docstr_tok: ["Compiles","pipeline","into","Kubeflow","V2","Pipelines","spec","."]
code: def compile_pipeline(self) -> None:
      """Compiles pipeline into Kubeflow V2 Pipelines spec."""
      patcher = (
          kubeflow_v2_dag_runner_patcher.KubeflowV2DagRunnerPatcher(
              call_real_run=True
          )
      )
      context = self.execute_dsl(patcher)
      click.echo(
          f"Pipeline {context[patcher.PIPELINE_NAME]} compiled "
          "successfully."
      )
  
imports: import functools
  import os
  import sys
  import click
  from google.cloud import aiplatform
  from google.cloud.aiplatform import pipeline_jobs
  from tfx.dsl.io import fileio
  from tfx.tools.cli import labels
  from tfx.tools.cli.handler import base_handler
  from tfx.tools.cli.handler import kubeflow_handler
  from tfx.tools.cli.handler import kubeflow_v2_dag_runner_patcher
  from tfx.utils import io_utils
label_desc: Use image node_id 5 for calling the VertexHandler obj's underlying member method code with example usage: obj.compile_pipeline() without return types