code: def test_force_all(eager):
      """Assert that force_all=True will always evict all object."""
      cache = _ObjectCache(may_keep_one=eager)
  
      cache.increase_max("A", 2)
  
      assert cache.cache_object("A", 1)
      assert cache.cache_object("A", 2)
  
      assert list(cache.flush_cached_objects(force_all=True)) == [1, 2]
      assert cache.num_cached_objects == 0
  
imports: import pytest
  from ray.tune.utils.object_cache import _ObjectCache
label_desc: Use image node_id 4 for calling a global function with example usage: test_force_all(eager) without return types