code: def parse_arguments(argv):
      parser = argparse.ArgumentParser()
  
      parser.add_argument(
          "input_folder_dir",
          type=str,
          help="Dir with videos to be processed.",
      )
      parser.add_argument(
          "output_folder_dir",
          type=str,
          help="Dir for processed videos to save.",
      )
      parser.add_argument(
          "mode", type=str, help="Processing mdoe for adversary attack."
      )
  
      parser.add_argument(
          "--disp_console",
          type=str2bool,
          help="Create EOT attack graph instead of single angle graph.",
          default=True,
      )
  
      return parser.parse_args(argv)
  
imports: from __future__ import division
  from __future__ import print_function
  from builtins import str
  from builtins import range
  from past.utils import old_div
  from builtins import object
  import tensorflow
  import cv2
  import numpy
  import os
  import sys
  import argparse
  import pdb
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: parse_arguments(argv) and returns: parser