code: def test_multi_eager_other():
      """On eager caching, only cache an object if no other object is expected.
  
      - Expect up to one cached A object
      - Try to cache object B --> doesn't get cached
      - Remove expectation for A object
      - Try to cache object B --> get's cached
      """
      cache = _ObjectCache(may_keep_one=True)
  
      cache.increase_max("A", 1)
      assert not cache.cache_object("B", 2)
  
      cache.decrease_max("A", 1)
      assert cache.cache_object("B", 3)
  
imports: import pytest
  from ray.tune.utils.object_cache import _ObjectCache
label_desc: Use image node_id 3 for calling a global function with example usage: test_multi_eager_other() without return types