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: Updates a dataset.
  
  :param dataset: The dataset which replaces the resource on the server.
      If a dict is provided, it must be of the same form as the protobuf message Dataset.
  :param update_mask: The update mask applies to the resource.  If a dict is provided, it must
      be of the same form as the protobuf message FieldMask.
  :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.
  
  :return: `google.cloud.automl_v1beta1.types.Dataset` instance..
docstr_tok: ["Updates","a","dataset",".",":","param","dataset",":","The","dataset","which","replaces","the","resource","on","the","server",".","If","a","dict","is","provided",",","it","must","be","of","the","same","form","as","the","protobuf","message","Dataset",".",":","param","update_mask",":","The","update","mask","applies","to","the","resource",".","If","a","dict","is","provided",",","it","must","be","of","the","same","form","as","the","protobuf","message","FieldMask",".",":","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",".",":","return",":","`","google.cloud.automl_v1beta1.types.Dataset","`","instance",".."]
code: def update_dataset(
      self,
      dataset: dict | Dataset,
      update_mask: dict | FieldMask | None = None,
      retry: Retry | _MethodDefault = DEFAULT,
      timeout: float | None = None,
      metadata: Sequence[tuple[str, str]] = (),
  ) -> Dataset:
      """
      Updates a dataset.
  
      :param dataset: The dataset which replaces the resource on the server.
          If a dict is provided, it must be of the same form as the protobuf message Dataset.
      :param update_mask: The update mask applies to the resource.  If a dict is provided, it must
          be of the same form as the protobuf message FieldMask.
      :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.
  
      :return: `google.cloud.automl_v1beta1.types.Dataset` instance..
      """
      client = self.get_conn()
      result = client.update_dataset(
          request={"dataset": dataset, "update_mask": update_mask},
          retry=retry,
          timeout=timeout,
          metadata=metadata,
      )
      return result
  
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 14 for calling the CloudAutoMLHook obj's underlying member method code with example usage: obj.update_dataset(dataset, update_mask, retry, timeout, metadata) and returns: result