def reduce_args(*args, **kwargs) -> int:
    """
    Call the built-in hash function on the arguments.

    Positional arguments are passed in order.
    Named arguments are passed in alphabetical order.
    """
    hash_values = [*args]

    kwargs_keys = sorted(kwargs)

    for k in kwargs_keys:
        hash_values.append(k)
        hash_values.append(kwargs[k])

    return hash(tuple(hash_values))