code: def import_model_class(model_type, class_name):
      """
      Imports a predefined detection class by class name.
  
      Args:
          model_type: str
              "yolov5", "detectron2", "mmdet", "huggingface" etc
          model_name: str
              Name of the detection model class (example: "MmdetDetectionModel")
      Returns:
          class_: class with given path
      """
      module = __import__(
          f"sahi.models.{model_type}", fromlist=[class_name]
      )
      class_ = getattr(module, class_name)
      return class_
  
imports: import glob
  import json
  import ntpath
  import os
  import pickle
  import re
  import urllib.request
  import zipfile
  from pathlib import Path
  from typing import Optional
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: import_model_class(model_type, class_name) and returns: class_