def is_ip_filter(ip, options=None):
 return (is_ipv4_filter(ip, options=options) or is_ipv6_filter(ip, options=options))

def is_ip_filter ( ip , options = None ) : return ( is_ipv4_filter ( ip , options = options ) or is_ipv6_filter ( ip , options = options ) )
returns a bool telling if the passed ip is a valid ipv4 or ipv6 address .