code: def test_simple_cache():
      cache = SimpleCache()
      assert cache.hits == 0 and cache.misses == 0
      assert "a" not in cache
      assert cache.hits == 0 and cache.misses == 1
      cache["a"] = 1
      assert cache.hits == 0 and cache.misses == 1
      assert "a" in cache
      assert cache.hits == 1 and cache.misses == 1
      with pytest.raises(KeyError):
          cache["b"]
  
file_path: baikal/tests/_core/test_utils.py
imports: from contextlib import contextmanager
  import pytest
  from baikal._core.utils import listify, unlistify, safezip2, find_duplicated_items, SimpleCache, make_name
label_desc: Use image node_id 7 for calling a global function with example usage: test_simple_cache() without return types