code: def test_single_exp(one_experiment, capsys):
      """Test that the name of the experiment is printed when there is one experiment."""
      orion.core.cli.main(["list"])
  
      captured = capsys.readouterr().out
  
      assert captured == " test_single_exp-v1\n"
  
file_path: orion/tests/functional/commands/test_list_command.py
imports: import os
  import orion.core.cli
label_desc: Use image node_id 2 for calling a global function with example usage: test_single_exp(one_experiment, capsys) without return types