code: def test_visualize(self):
      img_paths = [
          "tests/data/rec_toy_dataset/imgs/1036169.jpg",
          "tests/data/rec_toy_dataset/imgs/1058891.jpg",
      ]
  
      # img_out_dir
      with tempfile.TemporaryDirectory() as tmp_dir:
          self.inferencer(img_paths, out_dir=tmp_dir, save_vis=True)
          for img_dir in ["1036169.jpg", "1058891.jpg"]:
              self.assertTrue(
                  osp.exists(osp.join(tmp_dir, "vis", img_dir))
              )
  
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 6 for calling the TestTextRecinferencer obj's underlying member method code with example usage: obj.test_visualize() without return types