code: def test_release_name(three_family_branch_with_trials):
      """Test that deleting an experiment removes all children"""
      experiments = setup_storage().fetch_experiments({})
      storage = setup_storage()
      assert len(experiments) == 3
      assert len(storage._fetch_trials({})) > 0
      uid = None
      for experiment in experiments:
          if experiment["name"] == "test_double_exp_child":
              uid = experiment["_id"]
          assert (
              storage.get_algorithm_lock_info(
                  uid=experiment["_id"]
              ).locked
              == 0
          )
      assert uid is not None
  
      with storage.acquire_algorithm_lock(uid=uid):
          assert storage.get_algorithm_lock_info(uid=uid).locked == 1
          for experiment in experiments:
              if experiment["name"] == "test_double_exp_child":
                  assert (
                      storage.get_algorithm_lock_info(
                          uid=experiment["_id"]
                      ).locked
                      == 1
                  )
              else:
                  assert (
                      storage.get_algorithm_lock_info(
                          uid=experiment["_id"]
                      ).locked
                      == 0
                  )
  
          execute("db release -f test_double_exp_child")
          for experiment in experiments:
              assert (
                  storage.get_algorithm_lock_info(
                      uid=experiment["_id"]
                  ).locked
                  == 0
              )
  
file_path: orion/tests/functional/commands/test_db_release.py
imports: import pytest
  import orion.core.cli
  from orion.storage.base import setup_storage
label_desc: Use image node_id 5 for calling a global function with example usage: test_release_name(three_family_branch_with_trials) without return types