code: def _is_ipv4_like(s):
      
      parts = s.split('.')
  
      if len(parts) != 4:
          return False
  
      for part in parts:
          try:
              int(part)
          except ValueError:
              return False
  
      return True
docs: Find if a string superficially looks like an IPv4 address.
  
      AWS documentation plays it fast and loose with this; in other
      regions, it seems like even non-valid IPv4 addresses (in
      particular, ones that possess decimal numbers out of range for
      IPv4) are rejected.