import ipaddress


def is_ip(address):
    """
    Returns True if address is a valid IP address.
    """
    try:
        # Test to see if already an IPv4/IPv6 address
        address = ipaddress.ip_address(address)
        return True
    except (ValueError):
        return False