docs: 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