code: def get_sync(dsk: Mapping, keys: Sequence[Key] | Key, **kwargs):
      """A naive synchronous version of get_async
  
      Can be useful for debugging.
      """
      kwargs.pop(
          "num_workers", None
      )  # if num_workers present, remove it
      return get_async(
          synchronous_executor.submit,
          synchronous_executor._max_workers,
          dsk,
          keys,
          **kwargs,
      )
  
imports: from __future__ import annotations
  import os
  from collections.abc import Mapping, Sequence
  from concurrent.futures import Executor, Future
  from functools import partial
  from queue import Empty, Queue
  from dask import config
  from dask.callbacks import local_callbacks, unpack_callbacks
  from dask.core import _execute_task, flatten, get_dependencies, has_tasks, reverse_dict
  from dask.order import order
  from dask.typing import Key
label_desc: Use image node_id 12 for calling a global function with example usage: get_sync(dsk, keys) and returns: get_async