code: def add_plot_any_command(
      subparsers,
      subcommand,
      help,
      description,
      plot_command,
      ylabel_default="",
  ):
      from argparse import RawTextHelpFormatter
  
      # Train
      subparser = subparsers.add_parser(
          subcommand,
          formatter_class=RawTextHelpFormatter,
          description=description,
          help=help,
      )
  
      subparser.add_argument(
          "inputs",
          type=str,
          nargs="+",
          metavar="infile",
          help="Path to input file.",
      )
      subparser.add_argument(
          "-l", "--label", action="append", help="Label of each plot."
      )
      subparser.add_argument(
          "-o",
          "--outfile",
          help="Path to output file.",
          type=str,
          default="",
      )
      subparser.add_argument(
          "-x", "--xlabel", help="X-axis label of plot.", default=""
      )
      subparser.add_argument(
          "-y",
          "--ylabel",
          help="Y-axis label of plot.",
          default=ylabel_default,
      )
      subparser.add_argument(
          "-t", "--title", help="Title of plot.", default=""
      )
      subparser.add_argument(
          "-T",
          "--ylim-max",
          help="Y-axis plot range max.",
          type=float,
          default=None,
      )
      subparser.add_argument(
          "-B",
          "--ylim-min",
          help="Y-axis plot range min.",
          type=float,
          default=None,
      )
      subparser.add_argument(
          "-R",
          "--xlim-max",
          help="X-axis plot range max.",
          type=float,
          default=None,
      )
      subparser.add_argument(
          "-L",
          "--xlim-min",
          help="X-axis plot range min.",
          type=float,
          default=None,
      )
      subparser.set_defaults(func=plot_command)
      return subparser
  
label_desc: Use image node_id 4 for calling a global function with example usage: add_plot_any_command(subparsers, subcommand, help, description, plot_command, ylabel_default) and returns: subparser