def try_geolocate(query):
    """Try to look up the location."""
    location = geocode(query)
    if location is None:
        error_logger.error(
            f"Geolocation API request failed due to timeout: exceeded {MAX_RETRIES} retries!"
        )
    return location
Try to look up the location.
vlmeval/dataset/utils/megabench/scoring/geo_proximity.py