import ipaddress


def is_ipv4(ip: str):
    """Return True if given address is a valid IPv4 address, otherwise return False"""
    try:
        ipaddress.IPv4Address(ip)
    except ipaddress.AddressValueError:
        return False
    return True