import math


def is_one(obj):
    """Tries to check if an object is considered one"""
    if isinstance(obj, int) or isinstance(obj, float):
        return math.isclose(obj, 1, abs_tol=1e-16)
    if hasattr(obj, "is_one"):
        return obj.is_one()
    return obj == 1