code: def test_init(self, mock_load):
      mock_load.side_effect = lambda *x, **y: None
      # init from metafile
      TextRecInferencer("crnn_mini-vgg_5e_mj")
      # init from cfg
      TextRecInferencer(
          "configs/textrecog/crnn/crnn_mini-vgg_5e_mj.py",
          "https://download.openmmlab.com/mmocr/textrecog/crnn/"
          "crnn_mini-vgg_5e_mj/"
          "crnn_mini-vgg_5e_mj_20220826_224120-8afbedbb.pth",
      )
  
file_path: mmocr/tests/test_apis/test_inferencers/test_textrec_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 TextRecInferencer
  from mmocr.utils.check_argument import is_type_list
  from mmocr.utils.typing_utils import TextRecogDataSample
label_desc: Use image node_id 2 for calling the TestTextRecinferencer obj's underlying member method code with example usage: obj.test_init(mock_load) without return types