code: def test_experiment_same_name_w_exv_w_child(
      three_experiments_family_same_name, capsys
  ):
      """Test status with two experiments having the same name and one with a child."""
      orion.core.cli.main(["status", "--expand-versions"])
  
      captured = capsys.readouterr().out
  
      expected = """\
  test_single_exp-v1
  ==================
  empty
  
  
    test_single_exp-v2
    ==================
    empty
  
  
    test_single_exp_child-v1
    ========================
    empty
  
  
  """
  
      assert captured == expected
  
imports: import os
  import pytest
  import yaml
  import orion.core.cli
  from orion.core.io.experiment_builder import ExperimentBuilder
  from orion.testing.state import OrionState
label_desc: Use image node_id 42 for calling a global function with example usage: test_experiment_same_name_w_exv_w_child(three_experiments_family_same_name, capsys) without return types