code: def test_textdet_parsers(self):
      parser = CTW1500AnnParser(split="train")
      img_path, train_file, test_file = self._create_dummy_ctw1500_det()
      img_path, instances = parser.parse_file(img_path, train_file)
      self.assertEqual(
          img_path, osp.join(self.root.name, "ctw1500.jpg")
      )
      self.assertEqual(len(instances), 1)
      self.assertEqual(instances[0]["text"], "OLATHE")
      self.assertEqual(
          instances[0]["poly"],
          [
              131,
              58,
              208,
              49,
              279,
              56,
              346,
              76,
              412,
              101,
              473,
              141,
              530,
              192,
              510,
              246,
              458,
              210,
              405,
              175,
              350,
              151,
              291,
              137,
              228,
              133,
              165,
              134,
          ],
      )
      self.assertEqual(instances[0]["ignore"], False)
  
      parser = CTW1500AnnParser(split="test")
      img_path, instances = parser.parse_file(img_path, test_file)
      self.assertEqual(
          img_path, osp.join(self.root.name, "ctw1500.jpg")
      )
      self.assertEqual(len(instances), 4)
      self.assertEqual(instances[0]["ignore"], True)
      self.assertEqual(instances[1]["text"], "E-313")
      self.assertEqual(
          instances[3]["poly"],
          [
              41,
              193,
              57,
              193,
              74,
              194,
              90,
              194,
              107,
              195,
              123,
              195,
              140,
              196,
              146,
              168,
              128,
              167,
              110,
              167,
              92,
              167,
              74,
              166,
              56,
              166,
              39,
              166,
          ],
      )
  
file_path: mmocr/tests/test_datasets/test_preparers/test_parsers/test_ctw1500_parser.py
imports: import os.path
  import tempfile
  import unittest
  from mmocr.datasets.preparers.parsers import CTW1500AnnParser
  from mmocr.utils import list_to_file
label_desc: Use image node_id 3 for calling the TestCTW1500AnnParser obj's underlying member method code with example usage: obj.test_textdet_parsers() without return types