@Appender(Index.__contains__.__doc__)
def __contains__(self, key: Any) -> bool:
    hash(key)
    try:
        self.get_loc(key)
    except (KeyError, TypeError, ValueError):
        return False
    return True
@Appender(Index.__contains__.__doc__)
def __contains__(self, key: Any) -> bool:
    hash(key)
    try:
        self.get_loc(key)
    except (KeyError, TypeError, ValueError):
        return False
    return True