def METHOD_NAME(data_dir: Path) -> dict[str, Any]:
    analytics = {}
    analytics['system_os'] = platform.system()
    analytics['system_release'] = platform.release()
    analytics['system_version'] = platform.version()
    analytics['rotki_version'] = get_system_spec()['rotkehlchen']
    location_data = retrieve_location_data(data_dir)
    if location_data is None:
        location_data = GeolocationData('unknown')
    analytics['country'] = location_data.country_code
    analytics['city'] = 'unknown'  # deprecated -- we no longer use it
    return analytics