import ipaddress


def is_valid_inet_address(address: str) -> bool:
    """Check whether address is a valid ipv(4/6) address."""
    try:
        ipaddress.ip_address(address)
    except ValueError:
        return False
    else:
        return True