<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def event_names(lang="en"):
 """This resource returns an unordered list of the localized event names for the specified language. :param lang: The language to query the names for. :return: A dictionary where the key is the event id and the value is the name of the event in the specified language. """

    cache_name = "event_names.%s.json" % lang
    data = get_cached("event_names.json", cache_name, params=dict(lang=lang))
    return dict([(event["id"], event["name"]) for event in data])