code: def cleanup_repo(hf_api: HfApi) -> Callable[[str], None]:
      def _cleanup_repo(repo_id: str) -> None:
          hf_api.delete_repo(
              repo_id=repo_id,
              token=CI_HUB_USER_API_TOKEN,
              repo_type="dataset",
          )
  
      return _cleanup_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 5 for calling a global function with example usage: cleanup_repo(hf_api) and returns: _cleanup_repo