code: def get_parser() -> ArgumentParser:
      """Get parser.
  
      Returns:
          ArgumentParser: The parser object.
      """
      parser = ArgumentParser()
      parser.add_argument(
          "--model",
          type=str,
          default="padim",
          help="Name of the algorithm to train/test",
      )
      parser.add_argument(
          "--config",
          type=str,
          required=False,
          help="Path to a model config file",
      )
      parser.add_argument(
          "--log-level",
          type=str,
          default="INFO",
          help="<DEBUG, INFO, WARNING, ERROR>",
      )
  
      return parser
  
file_path: anomalib/tools/train.py
imports: import logging
  import warnings
  from argparse import ArgumentParser, Namespace
  from pytorch_lightning import Trainer, seed_everything
  from anomalib.config import get_configurable_parameters
  from anomalib.data import get_datamodule
  from anomalib.data.utils import TestSplitMode
  from anomalib.models import get_model
  from anomalib.utils.callbacks import LoadModelCallback, get_callbacks
  from anomalib.utils.loggers import configure_logger, get_experiment_logger
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser