What about this:
    data = load_json_file()
    external_endpoints = map(itemgetter('ip'), data['external_endpoints'])
    endpoints_region_2 = filter(lambda x: x['region'] == 2, endpoints)
    ip4_region_2 = [ip for endpoint in endpoints_region_2 for ip in endpoint['ipv4']]
    ip6_region_2 = [ip for endpoint in endpoints_region_2 for ip in endpoint['ipv6']]

    are_shared = map(lambda x: x in ip4_region_2 or x in ip6_region_2, external_endpoints)
    return all(are_shared)