code: def main(args):
      """Fetch config and status experiments"""
      config = experiment_builder.get_cmd_config(args)
      builder = experiment_builder.ExperimentBuilder(
          config.get("storage")
      )
  
      args["all_trials"] = args.pop("all", False)
  
      experiments = get_experiments(builder, args)
  
      if not experiments:
          print("No experiment found")
          return
  
      if args.get("name"):
          print_evc([experiments[0]], builder, **args)
          return
  
      if args.get("version"):
          if args.get("collapse") or args.get("expand_versions"):
              raise RuntimeError(
                  "Cannot fetch specific version of experiments with --collapse "
                  "or --expand-versions."
              )
  
      print_evc(experiments, builder, **args)
  
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 2 for calling a global function with example usage: main(args) without return types