code: def parse_args():
      parser = argparse.ArgumentParser(description="Analyze Json Log")
      # currently only support plot curve and calculate average train time
      subparsers = parser.add_subparsers(
          dest="task", help="task parser"
      )
      add_plot_parser(subparsers)
      add_time_parser(subparsers)
      args = parser.parse_args()
      return args
  
file_path: mmdetection/tools/analysis_tools/analyze_logs.py
imports: import argparse
  import json
  from collections import defaultdict
  import matplotlib.pyplot
  import numpy
  import seaborn
label_desc: Use image node_id 5 for calling a global function with example usage: parse_args() and returns: args