code: def __init__(
      self,
      annotations_filepath: Union[str, Path, dict],
      img_dir: Union[str, Path],
      class_map: ClassMap,
      label_field: str = "label",
  ):
      super().__init__(template_record=self.template_record())
      if isinstance(annotations_filepath, dict):
          self.annotations_dict = annotations_filepath
      else:
          self.annotations_dict = json.loads(
              Path(annotations_filepath).read_bytes()
          )
      self.img_dir = Path(img_dir)
      self.label_field = label_field
      self.class_map = class_map
  
imports: from icevision.imports import *
  from icevision.core import *
  from icevision.utils import *
  from icevision.parsers.parser import *
label_desc: Use image node_id 1 to create a new VIABaseParser object from inherited base classes: Parser with example: obj = VIABaseParser(annotations_filepath, img_dir, class_map, label_field)