code: def test_update_default_leaf(
      three_experiments_same_name_with_trials, capsys
  ):
      """Test trials of the parent experiment are not updated"""
      exp1 = experiment_builder.load(name="test_single_exp", version=1)
      exp2 = experiment_builder.load(name="test_single_exp", version=2)
      exp3 = experiment_builder.load(name="test_single_exp", version=3)
      execute(
          "db set -f test_single_exp status=broken status=interrupted"
      )
      assert len(exp1.fetch_trials_by_status("broken")) > 0
      assert len(exp2.fetch_trials_by_status("broken")) > 0
      assert len(exp3.fetch_trials_by_status("broken")) == 0
  
      captured = capsys.readouterr()
  
      assert captured.out.endswith("1 trials modified\n")
  
file_path: orion/tests/functional/commands/test_db_set.py
imports: import orion.core.cli
  import orion.core.io.experiment_builder
  from orion.storage.base import setup_storage
label_desc: Use image node_id 10 for calling a global function with example usage: test_update_default_leaf(three_experiments_same_name_with_trials, capsys) without return types