class_docstr: Google Cloud AutoML hook.
  
  All the methods in the hook where project_id is used must be called with
  keyword arguments rather than positional.
class_docstr_tok: ["Google","Cloud","AutoML","hook",".","All","the","methods","in","the","hook","where","project_id","is","used","must","be","called","with","keyword","arguments","rather","than","positional","."]
docstr: Waits for long-lasting operation to complete.
docstr_tok: ["Waits","for","long-lasting","operation","to","complete","."]
code: def wait_for_operation(
      self, operation: Operation, timeout: float | None = None
  ):
      """Waits for long-lasting operation to complete."""
      try:
          return operation.result(timeout=timeout)
      except Exception:
          error = operation.exception(timeout=timeout)
          raise AirflowException(error)
  
imports: from __future__ import annotations
  from functools import cached_property
  from typing import TYPE_CHECKING, Sequence
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.automl_v1beta1 import AutoMlClient, BatchPredictInputConfig, BatchPredictOutputConfig, Dataset, ExamplePayload, ImageObjectDetectionModelDeploymentMetadata, InputConfig, Model, PredictionServiceClient, PredictResponse
  from airflow.exceptions import AirflowException
  from airflow.providers.google.common.consts import CLIENT_INFO
  from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
label_desc: Use image node_id 4 for calling the CloudAutoMLHook obj's underlying member method code with example usage: obj.wait_for_operation(operation, timeout) and returns: operation