def hash_object(object_):
    """
    Returns the hash value of the given object even if it not defines `__hash__`.
    
    Parameters
    ----------
    object_ : `Any`
        The object to get it's hash value of.
    
    Returns
    -------
    hash_value : `int`
    """
    try:
        hash_value = hash(object_)
    except (TypeError, NotImplementedError):
        hash_value = object.__hash__(object_)
    
    return hash_value