code: def via(
      annotations_file: Union[str, Path],
      img_dir: Union[str, Path],
      class_map: ClassMap,
      label_field: str = "label",
  ) -> Parser:
      """
      Parser for JSON annotations from the VGG Image Annotator V2.
      See (https://www.robots.ox.ac.uk/~vgg/software/via/)
  
      Just `polygon` and `rect` shape attribute types are supported.
  
      # Arguments
          annotations_file: Path to the JSON annotations file exported from VIA.
          img_dir: Path to the directory containing the referenced images.
          class_map: The ClassMap object for valid labels to retrieve from the annotations file.
          label_field: Defaults to `label`. The name of the `region_attribute` containing the label.
  
      # Returns
          The Parser
      """
      return VIABBoxParser(
          annotations_file, img_dir, class_map, label_field
      )
  
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 for calling a global function with example usage: via(annotations_file, img_dir, class_map, label_field) and returns: VIABBoxParser