code: def test_ordering():
      L = []
  
      def append(i):
          L.append(i)
  
      dsk = {("x", i): (append, i) for i in range(10)}
      x_keys = sorted(dsk)
      dsk["y"] = (lambda *args: None, list(x_keys))
  
      get_sync(dsk, "y")
  
      assert L == sorted(L, reverse=True)
  
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 11 for calling a global function with example usage: test_ordering() without return types