code: def get_parser() -> ArgumentParser:
      """Get parser.
  
      Returns:
          ArgumentParser: The parser object.
      """
      parser = ArgumentParser()
      parser.add_argument(
          "--config",
          type=Path,
          required=True,
          help="Path to a config file",
      )
      parser.add_argument(
          "--weights",
          type=Path,
          required=True,
          help="Path to model weights",
      )
      parser.add_argument(
          "--input",
          type=Path,
          required=True,
          help="Path to image(s) to infer.",
      )
      parser.add_argument(
          "--output",
          type=str,
          required=False,
          help="Path to save the output image(s).",
      )
      parser.add_argument(
          "--visualization_mode",
          type=str,
          required=False,
          default="simple",
          help="Visualization mode.",
          choices=["full", "simple"],
      )
      parser.add_argument(
          "--show",
          action="store_true",
          required=False,
          help="Show the visualized predictions on the screen.",
      )
  
      return parser
  
file_path: anomalib/tools/inference/lightning_inference.py
imports: from argparse import ArgumentParser, Namespace
  from pathlib import Path
  from pytorch_lightning import Trainer
  from torch.utils.data import DataLoader
  from anomalib.config import get_configurable_parameters
  from anomalib.data.inference import InferenceDataset
  from anomalib.data.utils import InputNormalizationMethod, get_transforms
  from anomalib.models import get_model
  from anomalib.utils.callbacks import get_callbacks
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser