code: def test_init(self, mock_load):
      mock_load.side_effect = lambda *x, **y: None
      # init from metafile
      TextDetInferencer("dbnet_resnet18_fpnc_1200e_icdar2015")
      # init from cfg
      TextDetInferencer(
          "configs/textdet/dbnet/"
          "dbnet_resnet18_fpnc_1200e_icdar2015.py",
          "https://download.openmmlab.com/mmocr/textdet/dbnet/"
          "dbnet_resnet18_fpnc_1200e_icdar2015/"
          "dbnet_resnet18_fpnc_1200e_icdar2015_20220825_221614-7c0e94f2.pth",
      )
  
imports: import os.path
  import random
  import tempfile
  from unittest import TestCase, mock
  import mmcv
  import mmengine
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from mmocr.apis.inferencers import TextDetInferencer
  from mmocr.utils.check_argument import is_type_list
  from mmocr.utils.typing_utils import TextDetDataSample
label_desc: Use image node_id 2 for calling the TestTextDetinferencer obj's underlying member method code with example usage: obj.test_init(mock_load) without return types