code: def parse_args():
      parser = argparse.ArgumentParser(
          description="DocTR artefact detection",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
      parser.add_argument(
          "arch", type=str, help="Artefact detection model to use"
      )
      parser.add_argument(
          "img_path", type=str, help="path to the image"
      )
      parser.add_argument(
          "--device", default=None, type=int, help="device"
      )
      args = parser.parse_args()
      return args
  
file_path: doctr/scripts/detect_artefacts.py
imports: import os
  import argparse
  import logging
  import cv2
  import matplotlib.pyplot
  import torch
  from doctr.io.image import read_img_as_tensor
  from doctr.models import obj_detection
label_desc: Use image node_id 3 for calling a global function with example usage: parse_args() and returns: args