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