from typing import Any


def is_hashable(candidate: Any) -> bool:
    """
    Determines whether candidate can be hashed or not.

    Args:
        candidate: The candidate to test if it is hashable.

    Returns:
        True if `candidate` is hashable; otherwise False.

    Examples:

        >>> is_hashable("i am")
        True
        >>> is_hashable({"I am": "not"})
        False
    """
    try:
        hash(candidate)
    except TypeError:
        return False
    return True