code: def test_cache_options():
      cache = {}
  
      def inc2(x):
          assert "y" in cache
          return x + 1
  
      with dask.config.set(cache=cache):
          get_sync({"x": (inc2, "y"), "y": 1}, "x")
  
imports: from __future__ import annotations
  import pytest
  import dask
  from dask.local import finish_task, get_sync, sortkey, start_state_from_dask
  from dask.order import order
  from dask.utils_test import GetFunctionTestMixin, add, inc
label_desc: Use image node_id 7 for calling a global function with example usage: test_cache_options() and returns: unknown