docs: def validate(self, ip, **kwargs):
          """Check to see if this is a valid ip address."""
          
          if ip is None:
              return False
  
          ip = stringify(ip)
  
          if self.IPV4_REGEX.match(ip):
  
              try:
                  socket.inet_pton(socket.AF_INET, ip)
                  return True
              except AttributeError:  # no inet_pton here, sorry
                  try:
                      socket.inet_aton(ip)
                  except socket.error:
                      return False
                  return ip.count('.') == 3
              except socket.error:  # not a valid address
                  return False
  
          if self.IPV6_REGEX.match(ip):
              try:
                  socket.inet_pton(socket.AF_INET6, ip)
              except socket.error:  # not a valid address
                  return False
              return True