code: def test_parsers(self):
      ann_path = self._create_fake_sample()
      parser = NAFAnnParser(split="train")
      _, instances = parser.parse_file("fake.jpg", ann_path)
      self.assertEqual(len(instances), 3)
      self.assertEqual(instances[0]["ignore"], False)
      self.assertEqual(instances[1]["ignore"], False)
      self.assertListEqual(
          instances[2]["poly"],
          [1357, 322, 1636, 324, 1636, 402, 1357, 400],
      )
  
      parser = NAFAnnParser(split="train", det=False)
      _, instances = parser.parse_file("fake.jpg", ann_path)
      self.assertEqual(len(instances), 2)
      self.assertEqual(instances[0]["text"], "7/24")
  
file_path: mmocr/tests/test_datasets/test_preparers/test_parsers/test_naf_parser.py
imports: import json
  import os.path
  import tempfile
  import unittest
  from mmocr.datasets.preparers import NAFAnnParser
label_desc: Use image node_id 3 for calling the TestNAFAnnParser obj's underlying member method code with example usage: obj.test_parsers() without return types