code: def add_subparser(parser):
      """Add the subparser that needs to be used for this command"""
      plot_parser = parser.add_parser(
          "plot", help=DESCRIPTION, description=DESCRIPTION
      )
  
      cli.get_basic_args_group(plot_parser)
  
      plot_parser.add_argument(
          "kind",
          type=str,
          choices=SINGLE_EXPERIMENT_PLOTS.keys(),
          help="kind of plot to generate. ",
      )
  
      plot_parser.add_argument(
          "-t",
          "--type",
          type=str,
          default="png",
          choices=VALID_TYPES,
          help="type of plot to return. (default: png)",
      )
  
      plot_parser.add_argument(
          "-o",
          "--output",
          type=str,
          default="",
          help="path where plot is saved. "
          " Will override the `type` argument."
          " (default is {exp.name}-v{exp.version}_{kind}.{type})",
      )
  
      plot_parser.add_argument(
          "--scale",
          type=float,
          default=1,
          help="more pixels, but same proportions of the plot. "
          " Scale acts as multiplier on height and width of resulting image."
          " Overrides value of 'scale' in plotly.io.write_image.",
      )
  
      plot_parser.set_defaults(func=main)
  
      return plot_parser
  
file_path: orion/src/orion/core/cli/plot.py
imports: import logging
  from orion.client.experiment import ExperimentClient
  from orion.core.cli import base
  from orion.core.io import experiment_builder
  from orion.plotting.base import SINGLE_EXPERIMENT_PLOTS
label_desc: Use image node_id 1 for calling a global function with example usage: add_subparser(parser) and returns: plot_parser