code: def temporary_repo(
      cleanup_repo: Callable[[str], None]
  ) -> Callable[[str], Iterator[str]]:
      @contextmanager
      def _temporary_repo(repo_id: str) -> Iterator[str]:
          try:
              yield repo_id
          finally:
              cleanup_repo(repo_id)
  
      return _temporary_repo
  
imports: import time
  from collections.abc import Callable, Iterator
  from contextlib import contextmanager, suppress
  from typing import Any, Literal, Optional, TypedDict, Union
  import pytest
  import requests
  from huggingface_hub.constants import REPO_TYPES, REPO_TYPES_URL_PREFIXES
  from huggingface_hub.hf_api import HfApi
  from huggingface_hub.utils._errors import hf_raise_for_status
label_desc: Use image node_id 6 for calling a global function with example usage: temporary_repo(cleanup_repo) and returns: _temporary_repo