code: def test_recog_anno_to_imginfo(self):
      file_paths = ["a.jpg", "b.jpg"]
      labels = ["aaa"]
      with self.assertRaises(AssertionError):
          recog_anno_to_imginfo(file_paths, labels)
  
      file_paths = ["a.jpg", "b.jpg"]
      labels = ["aaa", "bbb"]
      target = [
          {"file_name": "a.jpg", "anno_info": [{"text": "aaa"}]},
          {"file_name": "b.jpg", "anno_info": [{"text": "bbb"}]},
      ]
      self.assertListEqual(
          target, recog_anno_to_imginfo(file_paths, labels)
      )
  
file_path: mmocr/tests/test_utils/test_data_converter_utils.py
imports: import os.path
  import tempfile
  from unittest import TestCase
  import mmengine
  from mmocr.utils.data_converter_utils import dump_ocr_data, recog_anno_to_imginfo
label_desc: Use image node_id 3 for calling the TestDataConverterUtils obj's underlying member method code with example usage: obj.test_recog_anno_to_imginfo() without return types