import socket


def _is_valid_ip(ip_address):
  """Check if ip_addess is a valid IPv4 address.

  Args:
    ip_address (str): The ip address to check.

  Returns:
    True if the address is a valid IPv4 address and False otherwise.
  """
  try:
    socket.inet_aton(ip_address)
    return True
  except socket.error:
    return False