code: def test_textdet_parsers(self):
      file = self._create_dummy_sroie_det()
      parser = SROIETextDetAnnParser(split="train")
  
      img, instances = parser.parse_file(*file)
      self.assertEqual(img, file[0])
      self.assertEqual(len(instances), 4)
      self.assertIn("poly", instances[0])
      self.assertIn("text", instances[0])
      self.assertIn("ignore", instances[0])
      self.assertEqual(instances[0]["text"], "TAN CHAY YEE")
      self.assertEqual(instances[1]["ignore"], True)
      self.assertEqual(instances[3]["text"], "NO 2 & 4, JALAN BAYU 4,")
      self.assertListEqual(
          instances[2]["poly"], [100, 139, 267, 139, 267, 162, 100, 162]
      )
  
file_path: mmocr/tests/test_datasets/test_preparers/test_parsers/test_sroie_parser.py
imports: import os.path
  import tempfile
  import unittest
  from mmocr.datasets.preparers import SROIETextDetAnnParser
  from mmocr.utils import list_to_file
label_desc: Use image node_id 3 for calling the TestSROIETextDetAnnParser obj's underlying member method code with example usage: obj.test_textdet_parsers() without return types