import socket


def validate_ip(ip: str):
    """ Takes an ip_address string and validates it
    """
    try:
        socket.inet_aton(ip)
        return True
    except OSError:
        return False