code: def mmdet_config_dir() -> Generator[str, None, None]:
      git.Repo.clone_from(
          "https://github.com/open-mmlab/mmdetection",
          "/tmp/mmdetection",
      )
      repo = git.Repo("/tmp/mmdetection")
      repo.git.checkout("tags/v2.28.2")
      mmdet_config_dir = "/tmp/mmdetection/configs"
      os.environ["MMDETECTION_CONFIG_DIR"] = mmdet_config_dir
      yield mmdet_config_dir
  
      # cleanup
      cleanup_dir("/tmp/mmdetection")
  
imports: import os
  import shutil
  from typing import Generator
  import git
  import pytest
  import torch
  import determined
  import determined.pytorch
  import model_hub.mmdetection
  import model_hub.mmdetection._callbacks
  import model_hub.utils
  from determined.common import util
label_desc: Use image node_id 2 for calling a global function with example usage: mmdet_config_dir() without return types