code: def monkeypatch_session() -> Iterator[MonkeyPatch]:
      mp = MonkeyPatch()
      mp.setattr(
          "huggingface_hub.file_download.HUGGINGFACE_CO_URL_TEMPLATE",
          CI_URL_TEMPLATE,
      )
      # ^ see https://github.com/huggingface/datasets/pull/5196#issuecomment-1322191056
      mp.setattr("datasets.config.HF_ENDPOINT", CI_HUB_ENDPOINT)
      mp.setattr("datasets.config.HF_UPDATE_DOWNLOAD_COUNTS", False)
      yield mp
      mp.undo()
  
imports: from collections.abc import Iterator
  from pathlib import Path
  from libcommon.queue import _clean_queue_database
  from libcommon.resources import CacheMongoResource, QueueMongoResource
  from libcommon.simple_cache import _clean_cache_database
  from libcommon.storage import StrPath, init_duckdb_index_cache_dir, init_parquet_metadata_dir, init_statistics_cache_dir
  from pytest import MonkeyPatch, fixture
  from worker.config import AppConfig
  from worker.main import WORKER_STATE_FILE_NAME
  from worker.resources import LibrariesResource
  from .constants import CI_APP_TOKEN, CI_HUB_ENDPOINT, CI_PARQUET_CONVERTER_APP_TOKEN, CI_URL_TEMPLATE
label_desc: Use image node_id 5 for calling a global function with example usage: monkeypatch_session() without return types