code: def test_line_str_parser(self):
      parser = LineStrParser()
      line = "test.jpg mmocr"
      data = parser(line)
      self.assertEqual(data["filename"], "test.jpg")
      self.assertEqual(data["text"], "mmocr")
  
      # warnings
      line = "test test test"
      msg = "More than two blank spaces were detected. "
      msg += "Please use LineJsonParser to handle "
      msg += "annotations with blanks. "
      msg += "Check Doc "
      msg += "https://mmocr.readthedocs.io/en/latest/"
      msg += "tutorials/blank_recog.html "
      msg += "for details."
      data = parser(line)
      self.assertWarnsRegex(UserWarning, msg)
  
imports: import json
  from unittest import TestCase
  from mmocr.utils import LineJsonParser, LineStrParser
label_desc: Use image node_id 2 for calling the TestParser obj's underlying member method code with example usage: obj.test_line_str_parser() without return types