class_docstr: Runs prediction operation on Google Cloud AutoML.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:AutoMLPredictOperator`
  
  :param model_id: Name of the model requested to serve the batch prediction.
  :param payload: Name od the model used for the prediction.
  :param project_id: ID of the Google Cloud project where model is located if None then
      default project_id is used.
  :param location: The location of the project.
  :param operation_params: Additional domain-specific parameters for the predictions.
  :param retry: A retry object used to retry requests. If `None` is specified, requests will not be
      retried.
  :param timeout: The amount of time, in seconds, to wait for the request to complete. Note that if
      `retry` is specified, the timeout applies to each individual attempt.
  :param metadata: Additional metadata that is provided to the method.
  :param gcp_conn_id: The connection ID to use to connect to Google Cloud.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account (templated).
class_docstr_tok: ["Runs","prediction","operation","on","Google","Cloud","AutoML",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","AutoMLPredictOperator","`",":","param","model_id",":","Name","of","the","model","requested","to","serve","the","batch","prediction",".",":","param","payload",":","Name","od","the","model","used","for","the","prediction",".",":","param","project_id",":","ID","of","the","Google","Cloud","project","where","model","is","located","if","None","then","default","project_id","is","used",".",":","param","location",":","The","location","of","the","project",".",":","param","operation_params",":","Additional","domain-specific","parameters","for","the","predictions",".",":","param","retry",":","A","retry","object","used","to","retry","requests",".","If","`","None","`","is","specified",",","requests","will","not","be","retried",".",":","param","timeout",":","The","amount","of","time",",","in","seconds",",","to","wait","for","the","request","to","complete",".","Note","that","if","`","retry","`","is","specified",",","the","timeout","applies","to","each","individual","attempt",".",":","param","metadata",":","Additional","metadata","that","is","provided","to","the","method",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","to","connect","to","Google","Cloud",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","(","templated",")","."]
code: def execute(self, context: Context):
      hook = CloudAutoMLHook(
          gcp_conn_id=self.gcp_conn_id,
          impersonation_chain=self.impersonation_chain,
      )
      result = hook.predict(
          model_id=self.model_id,
          payload=self.payload,
          location=self.location,
          project_id=self.project_id,
          params=self.operation_params,
          retry=self.retry,
          timeout=self.timeout,
          metadata=self.metadata,
      )
      project_id = self.project_id or hook.project_id
      if project_id:
          AutoMLModelPredictLink.persist(
              context=context,
              task_instance=self,
              model_id=self.model_id,
              project_id=project_id,
          )
      return PredictResponse.to_dict(result)
  
imports: from __future__ import annotations
  import ast
  import warnings
  from typing import TYPE_CHECKING, Sequence, Tuple
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.automl_v1beta1 import BatchPredictResult, ColumnSpec, Dataset, Model, PredictResponse, TableSpec
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.providers.google.cloud.hooks.automl import CloudAutoMLHook
  from airflow.providers.google.cloud.links.automl import AutoMLDatasetLink, AutoMLDatasetListLink, AutoMLModelLink, AutoMLModelPredictLink, AutoMLModelTrainLink
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
label_desc: Use image node_id 2 for calling the AutoMLPredictOperator obj's underlying member method code with example usage: obj.execute(context) and returns: PredictResponse