code: def test_update_disabled_dataset_raises_way_1(
      queue_mongo_resource: QueueMongoResource,
      cache_mongo_resource: CacheMongoResource,
  ) -> None:
      dataset = "this-dataset-is-disabled"
      with patch(
          "libcommon.operations.get_dataset_info",
          return_value=DatasetInfo(
              id=dataset,
              sha="not-important",
              private=False,
              downloads=0,
              likes=0,
              tags=[],
              disabled=True,
          ),
      ):
          # ^ we have no programmatical way to disable a dataset, so we mock the response of the API
          # possibly, the API can raise a 403 error code instead of returning a disabled field
          # see following test
          with pytest.raises(NotSupportedDisabledRepositoryError):
              update_dataset(
                  dataset=dataset,
                  hf_endpoint=CI_HUB_ENDPOINT,
                  hf_token=CI_APP_TOKEN,
              )
  
imports: import time
  from collections.abc import Iterator
  from contextlib import contextmanager
  from http import HTTPStatus
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  from huggingface_hub.hf_api import DatasetInfo, HfApi
  from huggingface_hub.utils import HfHubHTTPError
  from requests import Response
  from libcommon.exceptions import DatasetInBlockListError, NotSupportedDisabledRepositoryError, NotSupportedPrivateRepositoryError, NotSupportedRepositoryNotFoundError
  from libcommon.operations import delete_dataset, get_latest_dataset_revision_if_supported_or_raise, update_dataset
  from libcommon.queue import Queue
  from libcommon.resources import CacheMongoResource, QueueMongoResource
  from libcommon.simple_cache import has_some_cache, upsert_response
  from libcommon.storage_client import StorageClient
  from .constants import CI_APP_TOKEN, CI_HUB_ENDPOINT, ENTERPRISE_ORG, ENTERPRISE_USER, ENTERPRISE_USER_TOKEN, NORMAL_ORG, NORMAL_USER, NORMAL_USER_TOKEN, PRO_USER, PRO_USER_TOKEN, PROD_HUB_ENDPOINT
  from .utils import REVISION_NAME
label_desc: Use image node_id 7 for calling a global function with example usage: test_update_disabled_dataset_raises_way_1(queue_mongo_resource, cache_mongo_resource) without return types