code: def update_dataset(
      dataset: str,
      hf_endpoint: str,
      blocked_datasets: Optional[list[str]] = None,
      hf_token: Optional[str] = None,
      hf_timeout_seconds: Optional[float] = None,
      priority: Priority = Priority.LOW,
      storage_clients: Optional[list[StorageClient]] = None,
  ) -> None:
      """
        blocked_datasets (list[str]): The list of blocked datasets. Supports Unix shell-style wildcards in the dataset
      name, e.g. "open-llm-leaderboard/*" to block all the datasets in the `open-llm-leaderboard` namespace. They
      are not allowed in the namespace name.
      """
      # let's the exceptions bubble up if any
      try:
          revision = get_latest_dataset_revision_if_supported_or_raise(
              dataset=dataset,
              hf_endpoint=hf_endpoint,
              hf_token=hf_token,
              hf_timeout_seconds=hf_timeout_seconds,
              blocked_datasets=blocked_datasets,
          )
      except NotSupportedError as e:
          logging.warning(
              f"Dataset {dataset} is not supported ({type(e)}). Let's delete the dataset."
          )
          delete_dataset(
              dataset=dataset, storage_clients=storage_clients
          )
          raise
      set_revision(
          dataset=dataset,
          revision=revision,
          priority=priority,
      )
  
file_path: datasets-server/libs/libcommon/src/libcommon/operations.py
imports: import logging
  from typing import Optional
  from huggingface_hub.hf_api import DatasetInfo, HfApi
  from huggingface_hub.utils import HfHubHTTPError, RepositoryNotFoundError
  from libcommon.exceptions import NotSupportedDisabledRepositoryError, NotSupportedDisabledViewerError, NotSupportedError, NotSupportedPrivateRepositoryError, NotSupportedRepositoryNotFoundError
  from libcommon.orchestrator import get_revision, remove_dataset, set_revision
  from libcommon.storage_client import StorageClient
  from libcommon.utils import Priority, raise_if_blocked
label_desc: Use image node_id 5 for calling a global function with example usage: update_dataset(dataset, hf_endpoint, blocked_datasets, hf_token, hf_timeout_seconds, priority, storage_clients) without return types