code: def test_format_refers_child():
      """Test refers section formatting for a child experiment"""
      ROOT_NAME = "root-name"
      PARENT_NAME = "parent-name"
  
      root = DummyExperiment()
      root.name = ROOT_NAME
  
      parent = DummyExperiment()
      parent.name = PARENT_NAME
  
      child = DummyExperiment()
      child.node = DummyExperiment()
      child.node.parent = parent
      child.node.root = root
  
      adapter = DummyExperiment()
      adapter.configuration = dict(adummy="dict", foran="adapter")
  
      child.refers = dict(adapter=adapter)
  
      # experiment.refers = dict(
      #     parent='user',
      #     datetime='now',
      #     orion_version='1.0.1')
      assert format_refers(child) == textwrap.dedent(
          """\
          Parent experiment
          =================
          root: root-name
          parent: parent-name
          adapter:
            adummy: dict
            foran: adapter
          """
      )
  
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 33 for calling a global function with example usage: test_format_refers_child() without return types