<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_ipv4(ip: str) -> bool: """ Returns True if the IPv4 address ia valid, otherwise returns False. """

    try:
        socket.inet_aton(ip)
    except socket.error:
        return False
    return True