code: def add_plot_parser(subparsers):
      parser_plt = subparsers.add_parser(
          "plot_curve", help="parser for plotting curves"
      )
      parser_plt.add_argument(
          "json_logs",
          type=str,
          nargs="+",
          help="path of train log in json format",
      )
      parser_plt.add_argument(
          "--keys",
          type=str,
          nargs="+",
          default=["bbox_mAP"],
          help="the metric that you want to plot",
      )
      parser_plt.add_argument(
          "--start-epoch",
          type=str,
          default="1",
          help="the epoch that you want to start",
      )
      parser_plt.add_argument(
          "--eval-interval",
          type=str,
          default="1",
          help="the eval interval when training",
      )
      parser_plt.add_argument(
          "--title", type=str, help="title of figure"
      )
      parser_plt.add_argument(
          "--legend",
          type=str,
          nargs="+",
          default=None,
          help="legend of each plot",
      )
      parser_plt.add_argument(
          "--backend", type=str, default=None, help="backend of plt"
      )
      parser_plt.add_argument(
          "--style", type=str, default="dark", help="style of plt"
      )
      parser_plt.add_argument("--out", type=str, default=None)
  
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 3 for calling a global function with example usage: add_plot_parser(subparsers) without return types