code: def get_test_parser(args) -> argparse.ArgumentParser:
      parser = argparse.ArgumentParser()
      for arg in args:
          parser.add_argument(arg)
      return parser
  
file_path: faiss/demos/offline_ivf/tests/testing_utils.py
imports: import argparse
  import yaml
  import numpy
  from typing import Dict, List, Optional
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_parser(args) and returns: parser