code: def test_get_pretrained_weights(
      mmdet_config_dir: None, context: det_torch.PyTorchTrialContext
  ) -> None:
      mh_mmdet.utils.CONFIG_TO_PRETRAINED = (
          mh_mmdet.utils.get_config_pretrained_url_mapping()
      )
      path, ckpt = mh_mmdet.get_pretrained_ckpt_path(
          "/tmp", context.get_hparam("config_file")
      )
      assert path is not None
      assert ckpt is not None
  
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 8 for calling a global function with example usage: test_get_pretrained_weights(mmdet_config_dir, context) without return types