code: def test_textrecog_parsers(self):
      parser = ICDARTxtTextRecogAnnParser(split="train")
      file = self._create_dummy_ic15_recog()
      samples = parser.parse_files(self.root.name, file)
      self.assertEqual(len(samples), 4)
      img, text = samples[0]
      self.assertEqual(img, osp.join(self.root.name, "word_1.png"))
      self.assertEqual(text, "Genaxis Theatre")
      img, text = samples[3]
      self.assertEqual(text, "62-,03")
  
file_path: mmocr/tests/test_datasets/test_preparers/test_parsers/test_icdar_txt_parsers.py
imports: import os.path
  import tempfile
  import unittest
  from mmocr.datasets.preparers.parsers.icdar_txt_parser import ICDARTxtTextDetAnnParser, ICDARTxtTextRecogAnnParser
  from mmocr.utils import list_to_file
label_desc: Use image node_id 5 for calling the TestIC15Parsers obj's underlying member method code with example usage: obj.test_textrecog_parsers() without return types