code: def parse_args():
      parser = argparse.ArgumentParser(description="log_name")
      parser.add_argument(
          "method",
          type=str,
          help="method name, used in csv/xlsx header",
      )
      parser.add_argument(
          "--epoch",
          type=int,
          default=25,
          required=False,
          help="train_epoch, used for checking whether training completed",
      )
      parser.add_argument(
          "--work-dirs",
          type=str,
          default="work_dirs/",
          required=False,
          help="directory for saving results",
      )
      parser.add_argument(
          "--origin",
          type=str,
          default=False,
          required=False,
          help="excel with datasets in the order of execution ",
      )
      args = parser.parse_args()
  
      return args
  
file_path: mmdetection/projects/RF100-Benchmark/scripts/log_extract.py
imports: import argparse
  import csv
  import json
  import os
  import re
  import numpy
  import pandas
  from openpyxl import load_workbook
  from openpyxl.styles import Alignment
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args