code: def test_line_json_parser(self):
      parser = LineJsonParser()
      line = json.dumps(dict(filename="test.jpg", text="mmocr"))
      data = parser(line)
      self.assertEqual(data["filename"], "test.jpg")
      self.assertEqual(data["text"], "mmocr")
  
imports: import json
  from unittest import TestCase
  from mmocr.utils import LineJsonParser, LineStrParser
label_desc: Use image node_id 1 for calling the TestParser obj's underlying member method code with example usage: obj.test_line_json_parser() without return types