code: def test_init(self, mock):
      # init from metafile
      DetInferencer("rtmdet-t")
      # init from cfg
      DetInferencer("configs/yolox/yolox_tiny_8xb8-300e_coco.py")
  
imports: import os.path
  import tempfile
  from unittest import TestCase, mock
  from unittest.mock import Mock, patch
  import mmcv
  import mmengine
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from mmengine.utils import is_list_of
  from parameterized import parameterized
  from mmdet.apis import DetInferencer
  from mmdet.evaluation.functional import get_classes
  from mmdet.structures import DetDataSample
label_desc: Use image node_id 1 for calling the TestDetInferencer obj's underlying member method code with example usage: obj.test_init(mock) without return types