def get_data_year(year, data_structure):
    """
    Retrieve the data for a given year.

    :param year: a defined year for which corresponding data will be returned
    :param data_structure: the dictionary holding the input data
    :return: data dictionary
    """

    try:
        data_year = data_structure[year]
    except Exception as error:
        print(error)
        return None
    else:
        print(data_year)
        return data_year