code: def test_exp_family_same_name(
      three_experiments_family_same_name, monkeypatch, capsys
  ):
      """Test that two experiments with the same name and different versions are correctly printed
      even when one of them has a child.
      """
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      orion.core.cli.main(["list"])
  
      captured = capsys.readouterr().out
  
      assert (
          captured
          == """\
                     ┌test_single_exp-v2
   test_single_exp-v1┤
                     └test_single_exp_child-v1
  """
      )
  
file_path: orion/tests/functional/commands/test_list_command.py
imports: import os
  import orion.core.cli
label_desc: Use image node_id 14 for calling a global function with example usage: test_exp_family_same_name(three_experiments_family_same_name, monkeypatch, capsys) without return types