code: def test_textdet_parsers(self):
      parser = WildreceiptTextDetAnnParser(split="train")
      samples = parser.parse_files(self.root.name, self.anno)
      self.assertEqual(len(samples), 1)
      self.assertEqual(osp.basename(samples[0][0]), "test.jpg")
      instances = samples[0][1]
      self.assertEqual(len(instances), 2)
      self.assertIn("poly", instances[0])
      self.assertIn("text", instances[0])
      self.assertIn("ignore", instances[0])
      self.assertEqual(instances[0]["text"], "test")
      self.assertEqual(instances[1]["ignore"], True)
  
file_path: mmocr/tests/test_datasets/test_preparers/test_parsers/test_wildreceipt_parsers.py
imports: import json
  import os.path
  import tempfile
  import unittest
  from mmocr.datasets.preparers.parsers.wildreceipt_parser import WildreceiptKIEAnnParser, WildreceiptTextDetAnnParser
  from mmocr.utils import list_to_file
label_desc: Use image node_id 2 for calling the TestWildReceiptParsers obj's underlying member method code with example usage: obj.test_textdet_parsers() without return types