code: def make_parser(
      labels: Optional[List[str]] = None,
      name: str = "base",
      **kwargs,
  ) -> CharParser:
      """Creates parser from labels, set of arguments and concise parser name.
  
      Args:
          labels: List of labels to allocate indexes for. If set to
              None then labels would be ascii table list. Essentially, this is an
              id to str mapping (default: None).
          name: Concise name of parser to create (default: 'base').
              (default: -1).
          **kwargs: Other set of kwargs to pass to parser constructor.
  
      Returns:
          Instance of `CharParser`.
  
      Raises:
          ValueError: For invalid parser name.
  
      Examples:
          >>> type(make_parser(['a', 'b', 'c'], 'en'))
          ENCharParser
      """
  
      if name not in NAME_TO_PARSER:
          raise ValueError("Invalid parser name.")
  
      if labels is None:
          labels = list(string.printable)
  
      parser_type = NAME_TO_PARSER[name]
      parser = parser_type(labels=labels, **kwargs)
  
      return parser
  
file_path: NeMo/nemo/collections/common/parts/preprocessing/parsers.py
imports: import string
  from typing import List, Optional
  from nemo.collections.common.parts.preprocessing import cleaners
label_desc: Use image node_id 1 for calling a global function with example usage: make_parser(labels, name) and returns: parser