code: def print_all_trials(trials, offset=0):
      """Print all trials of the current experiment individually.
  
      Parameters
      ----------
      trials: list
          Trials to list in terminal.
      offset: int, optional
          The number of tabs to the right this experiment is.
  
      """
      headers = ["id", "status", "best objective"]
      lines = []
  
      for trial in sorted(trials, key=lambda t: t.status):
          line = [trial.id, trial.status]
  
          if trial.objective:
              headers[-1] = f"min {trial.objective.name}"
              line.append(trial.objective.value)
  
          lines.append(line)
  
      if not trials:
          lines.append(["empty", "", ""])
  
      grid = tabulate.tabulate(lines, headers=headers)
      tab = " " * offset
      print(tab + ("\n" + tab).join(grid.split("\n")))
  
      print("\n")
  
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 9 for calling a global function with example usage: print_all_trials(trials, offset) without return types