code: def tmp_dataset(
      namespace: str, token: str, private: bool
  ) -> Iterator[str]:
      # create a test dataset in hub-ci, then delete it
      hf_api = HfApi(endpoint=CI_HUB_ENDPOINT, token=token)
      dataset = f"{namespace}/private-dataset-{int(time.time() * 10e3)}"
      hf_api.create_repo(
          repo_id=dataset,
          private=private,
          repo_type="dataset",
      )
      try:
          yield dataset
      finally:
          hf_api.delete_repo(repo_id=dataset, repo_type="dataset")
  
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 3 for calling a global function with example usage: tmp_dataset(namespace, token, private) without return types