def METHOD_NAME(self, item_key: str) -> int:
    """Route incoming `(key, value)` pairs to partitions.
    Defaults to `zlib.adler32` as a simple consistent function.
    This must be globally consistent across workers and executions
    and return the same hash on every call.
    A specific partition is chosen by wrapped indexing this value
    into the ordered global set of partitions. (Not just
    partitions local to this worker.)
    .. caution:: Do not use Python's built in `hash` function
        here! It is [_not consistent between processes by
        default_](https://docs.python.org/3/using/cmdline.html#cmdoption-R)
        and using it will cause incorrect partitioning in cluster
        executions.
    Args:
        item_key:
            Key for the value that is about to be written.
    Returns:
        Integer hash value that is used to assign partition.
    """
    return adler32(item_key.encode())