code: def test_callback():
      f = lambda x: x + 1
      dsk = {"a": (f, 1)}
      from dask.threaded import get
  
      def start_callback(key, d, state):
          assert key == "a" or key is None
          assert d == dsk
          assert isinstance(state, dict)
  
      def end_callback(key, value, d, state, worker_id):
          assert key == "a" or key is None
          assert value == 2 or value is None
          assert d == dsk
          assert isinstance(state, dict)
  
      get(
          dsk,
          "a",
          start_callback=start_callback,
          end_callback=end_callback,
      )
  
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 9 for calling a global function with example usage: test_callback() without return types