code: def parse_args() -> argparse.Namespace:
      parser = argparse.ArgumentParser(os.path.basename(__file__))
      parser.add_argument(
          "-r",
          "--root",
          default=os.path.dirname(
              os.path.dirname(os.path.abspath(__file__))
          ),
          help="onnx root directory (default: %(default)s)",
      )
      parser.add_argument(
          "-o", "--out", required=True, help="output directory"
      )
      return parser.parse_args()
  
imports: import argparse
  import os
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser