class_docstr: Wildreceipt KIE Parser.
  
  The original annotation format of this dataset is stored in txt files,
  which is formed as the following json line format:
      {"file_name": "xxx/xxx/xx/xxxx.jpeg",
      "height": 1200,
      "width": 1600,
      "annotations": [
          "box": [x1, y1, x2, y2, x3, y3, x4, y4],
          "text": "xxx",
          "label": 25,
      ]}
  
  Args:
      ignore (int): The label to be ignored. Defaults to 0.
      nproc (int): The number of processes to parse the annotation. Defaults
          to 1.
docstr: Convert single annotation.
docstr_tok: ["Convert","single","annotation","."]
code: def parse_files(self, img_dir: str, ann_path: str) -> Dict:
      """Convert single annotation."""
      closeset_lines = list_from_file(ann_path)
      samples = list()
      for line in closeset_lines:
          json_line = json.loads(line)
          img_file = osp.join(
              img_dir, osp.basename(json_line["file_name"])
          )
          json_line["file_name"] = img_file
          samples.append(json.dumps(json_line))
  
      return samples
  
file_path: mmocr/mmocr/datasets/preparers/parsers/wildreceipt_parser.py
imports: import json
  import os.path
  from typing import Dict
  from mmocr.registry import DATA_PARSERS
  from mmocr.utils import list_from_file
  from .base import BaseParser
label_desc: Use image node_id 2 for calling the WildreceiptKIEAnnParser obj's underlying member method code with example usage: obj.parse_files(img_dir, ann_path) and returns: samples