import ipaddress


def is_ip_on_lan(ip: str) -> bool:
    """Return true when the given IP is in a IANA IPv4 private range, otherwise false

    Args:
        ip An IPv4 address in dotted-quad notation.

    Returns:
        true or false depending on the value of ip

    """
    return ipaddress.IPv4Address(ip).is_private