code: def test_format_info(algorithm_dict, dummy_trial):
      """Test full formatting string"""
      experiment = DummyExperiment()
      commandline = [
          "executing.sh",
          '--some~choices(["random", "or", "not"])',
          "--command~uniform(0, 1)",
      ]
      experiment.name = "test"
      experiment.version = 1
      experiment.metadata = {"user_args": commandline}
      experiment.max_trials = 100
      experiment.max_broken = 5
      experiment.working_dir = "working_dir"
      experiment.configuration = {"algorithm": algorithm_dict}
  
      space = SpaceBuilder().build(
          {
              "some": 'choices(["random", "or", "not"])',
              "command": "uniform(0, 1)",
          }
      )
      experiment.space = space
      experiment.metadata.update(
          dict(
              user="user",
              datetime="now",
              orion_version="1.0.1",
              VCS=dict(
                  HEAD_sha="sha",
                  active_branch="branch",
                  diff_sha="smt",
                  is_dirty=True,
                  type="git",
              ),
          )
      )
  
      ROOT_NAME = "root-name"
      PARENT_NAME = "parent-name"
  
      root = DummyExperiment()
      root.name = ROOT_NAME
  
      parent = DummyExperiment()
      parent.name = PARENT_NAME
  
      experiment.node = DummyExperiment()
      experiment.node.parent = parent
      experiment.node.root = root
  
      adapter = DummyExperiment()
      adapter.configuration = dict(adummy="dict", foran="adapter")
  
      experiment.refers = dict(adapter=adapter)
      experiment.stats = ExperimentStats(
          best_trials_id="dummy",
          trials_completed=10,
          best_evaluation=0.1,
          start_time="yesterday",
          finish_time="now",
          elapsed_time="way too long",
      )
      experiment.get_trial = lambda trial=None, uid=None: dummy_trial
      experiment.is_done = False
  
      assert format_info(experiment) == textwrap.dedent(
          """\
          Identification
          ==============
          name: test
          version: 1
          user: user
  
  
          Commandline
          ===========
          executing.sh --some~choices(["random", "or", "not"]) --command~uniform(0, 1)
  
  
          Config
          ======
          max trials: 100
          max broken: 5
          working dir: working_dir
  
  
          Algorithm
          =========
          bayesianoptimizer:
              acq_func: gp_hedge
              alpha: 1e-10
              n_initial_points: 10
              n_restarts_optimizer: 0
              normalize_y: False
  
  
          Space
          =====
          command: uniform(0, 1)
          some: choices(['random', 'or', 'not'])
  
  
          Meta-data
          =========
          user: user
          datetime: now
          orion version: 1.0.1
          VCS:
            HEAD_sha: sha
            active_branch: branch
            diff_sha: smt
            is_dirty: True
            type: git
  
  
          Parent experiment
          =================
          root: root-name
          parent: parent-name
          adapter:
            adummy: dict
            foran: adapter
  
  
          Stats
          =====
          completed: False
          trials completed: 10
          best trial:
            id: dummy
            evaluation: 0.1
            params:
              a: 0.0
              b: 1
              c: Some
          start time: yesterday
          finish time: now
          elapsed_time: way too long
  
          """
      )
  
imports: import itertools
  import textwrap
  import pytest
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.utils.format_terminal import format_algorithm, format_commandline, format_config, format_dict, format_identification, format_info, format_list, format_metadata, format_refers, format_space, format_stats, format_title, get_trial_params
  from orion.core.worker.experiment import ExperimentStats
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 37 for calling a global function with example usage: test_format_info(algorithm_dict, dummy_trial) without return types