code: def get_dependencies(
      dsk: Graph,
      key: Key | None,
      task: Key | NoDefault,
      as_list: Literal[True],
  ) -> list[Key]:
      ...
  
imports: from __future__ import annotations
  from collections import defaultdict
  from collections.abc import Collection, Iterable, Mapping
  from typing import Any, Literal, TypeVar, cast, overload
  from dask.typing import Graph, Key, NoDefault, no_default
label_desc: Use image node_id 12 for calling a global function with example usage: get_dependencies(dsk, key, task, as_list) without return types