code: def test_prefer_cheap_dependent():
      dsk = {"x": (f, 0.01, 10), "y": (f, 0.000001, 1, "x")}
      c = Cache(10000)
      with c:
          get_sync(dsk, "y")
  
      assert c.cache.scorer.cost["x"] < c.cache.scorer.cost["y"]
  
file_path: dask/dask/tests/test_cache.py
imports: from __future__ import annotations
  from operator import add
  from time import sleep
  import pytest
  from dask.cache import Cache
  from dask.callbacks import Callback
  from dask.local import get_sync
  from dask.threaded import get
label_desc: Use image node_id 6 for calling a global function with example usage: test_prefer_cheap_dependent() without return types