code: def test_init(self, mock_load):
      mock_load.side_effect = lambda *x, **y: None
      MMOCRInferencer(det="dbnet_resnet18_fpnc_1200e_icdar2015")
      MMOCRInferencer(
          det="configs/textdet/dbnet/dbnet_resnet18_fpnc_1200e_icdar2015.py",
          det_weights="https://download.openmmlab.com/mmocr/textdet/dbnet/"
          "dbnet_resnet18_fpnc_1200e_icdar2015/"
          "dbnet_resnet18_fpnc_1200e_icdar2015_20220825_221614-7c0e94f2.pth",
      )
      MMOCRInferencer(rec="crnn_mini-vgg_5e_mj")
      with self.assertRaises(ValueError):
          MMOCRInferencer(det="dummy")
  
file_path: mmocr/tests/test_apis/test_inferencers/test_mmocr_inferencer.py
imports: import os.path
  import random
  import tempfile
  from unittest import TestCase, mock
  import mmcv
  import mmengine
  import numpy
  import torch
  from mmocr.apis.inferencers import MMOCRInferencer
label_desc: Use image node_id 3 for calling the TestMMOCRInferencer obj's underlying member method code with example usage: obj.test_init(mock_load) without return types