code: def test_confirm_name(monkeypatch, single_with_trials):
      """Test name must be confirmed for update"""
  
      def incorrect_name(*args):
          return "oops"
  
      monkeypatch.setattr("builtins.input", incorrect_name)
  
      execute(
          "db set test_single_exp status=broken status=interrupted",
          assert_code=1,
      )
  
      def correct_name(*args):
          return "test_single_exp"
  
      monkeypatch.setattr("builtins.input", correct_name)
  
      assert (
          len(setup_storage()._fetch_trials({"status": "broken"})) > 0
      )
      execute("db set test_single_exp status=broken status=interrupted")
      assert (
          len(setup_storage()._fetch_trials({"status": "broken"})) == 0
      )
  
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 3 for calling a global function with example usage: test_confirm_name(monkeypatch, single_with_trials) and returns: str, str