def _is_ipv4_like(s):
parts = s.split('<STR_LIT:.>')<EOL>if len(parts) != <NUM_LIT:4>:<EOL><INDENT>return False<EOL><DEDENT>for part in parts:<EOL><INDENT>try:<EOL><INDENT>int(part)<EOL><DEDENT>except ValueError:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
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.