code: def get_parser() -> ArgumentParser:
      """Get parser.
  
      Returns:
          ArgumentParser: The parser object.
      """
      parser = ArgumentParser()
      parser.add_argument(
          "--model",
          type=str,
          default="stfpm",
          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(
          "--weight_file", type=str, default="weights/model.ckpt"
      )
  
      return parser
  
file_path: anomalib/tools/test.py
imports: 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.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