class_docstr: Base class for parsing annotations.
  
  Args:
      split (str): The split of the dataset. It is usually set automatically
          and users do not need to set it manually in config file in most
          cases.
      nproc (int): Number of processes to process the data. Defaults to 1.
          It is usually set automatically and users do not need to set it
          manually in config file in most cases.
docstr: Parse annotations.
  
  Args:
      img_paths (str or list[str]): the list of image paths or the
          directory of the images.
      ann_paths (str or list[str]): the list of annotation paths or the
          path of the annotation file which contains all the annotations.
  
  Returns:
      List: A list of a tuple of (image_path, instances)
code: def __call__(
      self,
      img_paths: Union[List[str], str],
      ann_paths: Union[List[str], str],
  ) -> List[Tuple]:
      """Parse annotations.
  
      Args:
          img_paths (str or list[str]): the list of image paths or the
              directory of the images.
          ann_paths (str or list[str]): the list of annotation paths or the
              path of the annotation file which contains all the annotations.
  
      Returns:
          List: A list of a tuple of (image_path, instances)
      """
      samples = self.parse_files(img_paths, ann_paths)
      return samples
  
file_path: mmocr/mmocr/datasets/preparers/parsers/base.py
imports: from abc import abstractmethod
  from typing import Dict, List, Tuple, Union
  from mmocr.utils import track_parallel_progress_multi_args
label_desc: Use image node_id 2 for calling the BaseParser obj's underlying member method code with example usage: obj.__call__(img_paths, ann_paths) and returns: samples