code: def get_args():
      """Gets parameters from commandline."""
      parser = ArgumentParser()
      parser.add_argument(
          "--model",
          type=str,
          default="padim",
          help="Name of the algorithm to train/test",
      )
      parser.add_argument(
          "--model_config",
          type=Path,
          required=False,
          help="Path to a model config file",
      )
      parser.add_argument(
          "--sweep_config",
          type=Path,
          required=True,
          help="Path to sweep configuration",
      )
      parser.add_argument(
          "--entity",
          type=str,
          required=False,
          help="Username or workspace where you want to send your runs to. If not set, the default workspace is used.",
      )
  
      return parser.parse_args()
  
file_path: anomalib/tools/hpo/sweep.py
imports: from __future__ import annotations
  from argparse import ArgumentParser
  from pathlib import Path
  from omegaconf import OmegaConf
  from pytorch_lightning import seed_everything
  from anomalib.config import get_configurable_parameters
  from anomalib.utils.hpo import CometSweep, WandbSweep
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: parser