code: def test_store_kwargs():
      d = da.from_array(cupy.ones((10, 10)), chunks=(2, 2))
      a = d + 1
  
      called = [False]
  
      def get_func(*args, **kwargs):
          assert kwargs.pop("foo") == "test kwarg"
          r = dask.get(*args, **kwargs)
          called[0] = True
          return r
  
      called[0] = False
      at = cupy.zeros(shape=(10, 10))
      da.core.store([a], [at], scheduler=get_func, foo="test kwarg")
      assert called[0]
  
      called[0] = False
      at = cupy.zeros(shape=(10, 10))
      a.store(at, scheduler=get_func, foo="test kwarg")
      assert called[0]
  
      called[0] = False
      at = cupy.zeros(shape=(10, 10))
      da.core.store(
          [a],
          [at],
          scheduler=get_func,
          return_stored=True,
          foo="test kwarg",
      )
      assert called[0]
  
imports: from __future__ import annotations
  import numpy
  import pytest
  from packaging.version import parse
  import dask
  import dask.array
  from dask.array.utils import assert_eq
  from dask.sizeof import sizeof
label_desc: Use image node_id 8 for calling a global function with example usage: test_store_kwargs() and returns: r