class_docstr: Helper methods for Vertex Handler.
class_docstr_tok: ["Helper","methods","for","Vertex","Handler","."]
code: def _prepare_vertex(self) -> None:
      if not self.flags_dict[labels.GCP_PROJECT_ID]:
          sys.exit("Please set GCP project id with --project flag.")
      if not self.flags_dict[labels.GCP_REGION]:
          sys.exit("Please set GCP region with --region flag.")
  
      aiplatform.init(
          project=self.flags_dict[labels.GCP_PROJECT_ID],
          location=self.flags_dict[labels.GCP_REGION],
      )
  
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 6 for calling the VertexHandler obj's underlying member method code with example usage: obj._prepare_vertex() without return types