class_docstr: Helper methods for Kubeflow Handler.
class_docstr_tok: ["Helper","methods","for","Kubeflow","Handler","."]
code: def _get_pipeline_id(
      self, pipeline_name: str, check: bool = True
  ) -> Optional[None]:
      pipeline_id = self._client.get_pipeline_id(pipeline_name)
      if check and pipeline_id is None:
          sys.exit(
              f'Cannot find pipeline "{pipeline_name}". Did you provide '
              "correct endpoint and pipeline name?"
          )
      return pipeline_id
  
imports: import functools
  import os
  import sys
  import time
  from typing import Any, Dict, Optional
  import click
  import kfp
  from tfx.orchestration.kubeflow import kubeflow_dag_runner
  from tfx.tools.cli import labels
  from tfx.tools.cli.container_builder import builder
  from tfx.tools.cli.handler import base_handler
  from tfx.tools.cli.handler import kubeflow_dag_runner_patcher
label_desc: Use image node_id 15 for calling the KubeflowHandler obj's underlying member method code with example usage: obj._get_pipeline_id(pipeline_name, check) and returns: pipeline_id