class_docstr: Abstract class interacting with CAIP or Vertex Prediction service.
class_docstr_tok: ["Abstract","class","interacting","with","CAIP","or","Vertex","Prediction","service","."]
docstr: Creates a new CAIP model or Vertex endpoint for serving with AI Platform if not exists.
  
  Args:
    labels: The dict of labels that will be attached to this CAIP job or
      Vertex endpoint.
    ai_platform_serving_args: Dictionary containing arguments for pushing to
      AI Platform.
  
  Returns:
    Whether a new CAIP model or Vertex endpoint is created.
  
  Raises:
    RuntimeError if CAIP model or Vertex endpoint creation failed.
docstr_tok: ["Creates","a","new","CAIP","model","or","Vertex","endpoint","for","serving","with","AI","Platform","if","not","exists",".","Args",":","labels",":","The","dict","of","labels","that","will","be","attached","to","this","CAIP","job","or","Vertex","endpoint",".","ai_platform_serving_args",":","Dictionary","containing","arguments","for","pushing","to","AI","Platform",".","Returns",":","Whether","a","new","CAIP","model","or","Vertex","endpoint","is","created",".","Raises",":","RuntimeError","if","CAIP","model","or","Vertex","endpoint","creation","failed","."]
code: def create_model_for_aip_prediction_if_not_exist(
      self,
      labels: Dict[str, str],
      ai_platform_serving_args: Dict[str, Any],
  ) -> bool:
      """Creates a new CAIP model or Vertex endpoint for serving with AI Platform if not exists.
  
      Args:
        labels: The dict of labels that will be attached to this CAIP job or
          Vertex endpoint.
        ai_platform_serving_args: Dictionary containing arguments for pushing to
          AI Platform.
  
      Returns:
        Whether a new CAIP model or Vertex endpoint is created.
  
      Raises:
        RuntimeError if CAIP model or Vertex endpoint creation failed.
      """
      pass
  
imports: import abc
  import sys
  import time
  from typing import Any, Dict, Optional, Union
  from absl import logging
  from google.cloud import aiplatform
  from googleapiclient import discovery
  from googleapiclient import errors
  import tensorflow
label_desc: Use image node_id 2 for calling the AbstractPredictionClient obj's underlying member method code with example usage: obj.create_model_for_aip_prediction_if_not_exist(labels, ai_platform_serving_args) without return types