code: def add_time_parser(subparsers):
      parser_time = subparsers.add_parser(
          "cal_train_time",
          help="parser for computing the average time per training iteration",
      )
      parser_time.add_argument(
          "json_logs",
          type=str,
          nargs="+",
          help="path of train log in json format",
      )
      parser_time.add_argument(
          "--include-outliers",
          action="store_true",
          help="include the first value of every epoch when computing "
          "the average time",
      )
  
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 4 for calling a global function with example usage: add_time_parser(subparsers) without return types