code: def test_one_exp(single_with_trials):
      """Test that one exp is deleted properly"""
      experiments = setup_storage().fetch_experiments({})
      assert len(experiments) == 1
      assert len(setup_storage()._fetch_trials({})) > 0
      assert (
          setup_storage().get_algorithm_lock_info(
              uid=experiments[-1]["_id"]
          )
          is not None
      )
      execute("db rm -f test_single_exp")
      assert len(setup_storage().fetch_experiments({})) == 0
      assert len(setup_storage()._fetch_trials({})) == 0
      assert (
          setup_storage().get_algorithm_lock_info(
              uid=experiments[-1]["_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 5 for calling a global function with example usage: test_one_exp(single_with_trials) without return types