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