code: def test_exp_name_with_child(three_experiments, monkeypatch, capsys):
      """Test that only the specified experiment is printed, and with its child."""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      orion.core.cli.main(["list", "--name", "test_double_exp"])
  
      captured = capsys.readouterr().out
  
      assert (
          captured
          == """\
   test_double_exp-v1┐
                     └test_double_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 11 for calling a global function with example usage: test_exp_name_with_child(three_experiments, monkeypatch, capsys) without return types