code: def test_get_dependencies_task():
      dsk = {"x": 1, "y": 2, "z": ["x", [(inc, "y")]]}
      assert get_dependencies(dsk, task=(inc, "x")) == {"x"}
      assert get_dependencies(dsk, task=(inc, "x"), as_list=True) == [
          "x"
      ]
  
imports: from __future__ import annotations
  import pickle
  from collections import namedtuple
  import pytest
  from dask.core import flatten, get, get_dependencies, get_deps, getcycle, has_tasks, ishashable, iskey, istask, literal, preorder_traversal, quote, subs, validate_key
  from dask.utils_test import GetFunctionTestMixin, add, inc
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_dependencies_task() without return types