code: def iskey(key: object) -> bool:
      """Return True if the given object is a potential dask key; False otherwise.
  
      The definition of a key in a Dask graph is any str, bytes, int, float, or tuple
      thereof.
  
      See Also
      --------
      ishashable
      validate_key
      dask.typing.Key
      """
      typ = type(key)
      if typ is tuple:
          return all(iskey(i) for i in cast(tuple, key))
      return typ in {bytes, int, float, str}
  
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 9 for calling a global function with example usage: iskey(key) and returns: unknown, all