code: def add_subparser(parser):
      """Add the subparser that needs to be used for this command"""
      status_parser = parser.add_parser(
          "status", help=SHORT_DESCRIPTION, description=DESCRIPTION
      )
  
      cli.get_basic_args_group(status_parser)
  
      status_parser.add_argument(
          "-a",
          "--all",
          action="store_true",
          help="Show all trials line by line. Otherwise, they are all aggregated by status",
      )
  
      status_parser.add_argument(
          "-C",
          "--collapse",
          action="store_true",
          help=(
              "Aggregate together results of all child experiments. Otherwise they are all "
              "printed hierarchically"
          ),
      )
  
      status_parser.add_argument(
          "-e",
          "--expand-versions",
          action="store_true",
          help=(
              "Show all the version of every experiments instead of only the latest one"
          ),
      )
  
      status_parser.set_defaults(func=main)
  
      return status_parser
  
file_path: orion/src/orion/core/cli/status.py
imports: import collections
  import logging
  import tabulate
  from orion.core.cli import base
  from orion.core.io import experiment_builder
label_desc: Use image node_id 1 for calling a global function with example usage: add_subparser(parser) and returns: status_parser