# dask.tokenize.tokenize

### dask.tokenize.tokenize(\*args: [object](https://docs.python.org/3/builtins/functions.html#object), ensure_deterministic: [bool](https://docs.python.org/3/builtins/functions.html#bool) | [None](https://docs.python.org/3/builtins/constants.html#None) = None, \*\*kwargs: [object](https://docs.python.org/3/builtins/functions.html#object)) → [str](https://docs.python.org/3/builtins/stdtypes.html#str)

Deterministic token

```pycon
>>> tokenize([1, 2, '3'])
'06961e8de572e73c2e74b51348177918'
```

```pycon
>>> tokenize('Hello') == tokenize('Hello')
True
```

* **Parameters:**
  **args, kwargs:**
  : objects to tokenize

  **ensure_deterministic: bool, optional**
  : If True, raise TokenizationError if the objects cannot be deterministically
    tokenized, e.g. two identical objects will return different tokens.
    Defaults to the tokenize.ensure-deterministic configuration parameter.

<!-- !! processed by numpydoc !! -->
