def get_movies_in_a_year(movies, year):
    """
    Query helper to get all the MOVIES that released that year.
    :param movies: Dictionary (name of the movie --> Movie Node for the movie)
    :param year: The year to look for MOVIES in.
    :return: List of MOVIES that released in the given year.
    """
    movies_in_year = [movie_name for movie_name, movie_node in movies.items() if movie_node.year_released == year]
    return movies_in_year