code: def parse_args():
      def str2bool(v):
          return v.lower() in ("true", "t", "1")
  
      # general params
      parser = argparse.ArgumentParser()
      parser.add_argument("--use_gpu", type=str2bool, default=False)
      parser.add_argument("--gpu_mem", type=int, default=1000)
  
      # params for predict
      parser.add_argument("--model_file", type=str)
      parser.add_argument("--params_file", type=str)
      parser.add_argument("-b", "--batch_size", type=int, default=1)
      parser.add_argument("--ir_optim", type=str2bool, default=True)
      parser.add_argument("--use_mkldnn", type=str2bool, default=True)
      parser.add_argument("--cpu_num_threads", type=int, default=10)
      parser.add_argument("--model", type=str)
  
      return parser.parse_args()
  
file_path: insightface/recognition/arcface_paddle/tools/benchmark_speed.py
imports: import os
  import numpy
  import time
  import argparse
  from paddle.inference import Config
  from paddle.inference import create_predictor
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser, unknown