code: def tokenize(*args, pure=None, **kwargs):
      """Mapping function from task -> consistent name.
  
      Parameters
      ----------
      args : object
          Python objects that summarize the task.
      pure : boolean, optional
          If True, a consistent hash function is tried on the input. If this
          fails, then a unique identifier is used. If False (default), then a
          unique identifier is always used.
      """
      if pure is None:
          pure = config.get("delayed_pure", False)
  
      if pure:
          return _tokenize(*args, **kwargs)
      else:
          return str(uuid.uuid4())
  
imports: from __future__ import annotations
  import operator
  import types
  import uuid
  import warnings
  from collections.abc import Sequence
  from dataclasses import fields, is_dataclass, replace
  from functools import partial
  from tlz import concat, curry, merge, unique
  from dask import config
  from dask.base import DaskMethodsMixin, dont_optimize, is_dask_collection, named_schedulers, replace_name_in_key
  from dask.base import tokenize
  from dask.context import globalmethod
  from dask.core import flatten, quote
  from dask.highlevelgraph import HighLevelGraph
  from dask.typing import Graph, NestedKeys
  from dask.utils import OperatorMethodMixin, apply, funcname, is_namedtuple_instance, methodcaller
label_desc: Use image node_id 5 for calling a global function with example usage: tokenize() and returns: _tokenize, str