code: def test_textdet_parsers(self):
      parser = TotaltextTextDetAnnParser(split="train")
      file = self._create_dummy_tt_det()
      img, instances = parser.parse_file(*file)
      self.assertEqual(img, file[0])
      self.assertEqual(len(instances), 3)
      self.assertIn("poly", instances[0])
      self.assertIn("text", instances[0])
      self.assertIn("ignore", instances[0])
      self.assertEqual(instances[0]["text"], "PERUNDING")
      self.assertEqual(instances[2]["ignore"], True)
  
file_path: mmocr/tests/test_datasets/test_preparers/test_parsers/test_tt_parsers.py
imports: import os.path
  import tempfile
  import unittest
  from mmocr.datasets.preparers.parsers.totaltext_parser import TotaltextTextDetAnnParser
  from mmocr.utils import list_to_file
label_desc: Use image node_id 3 for calling the TestTTParsers obj's underlying member method code with example usage: obj.test_textdet_parsers() without return types