code: def get_ratings(data):
      
      episodes = data['episodes']
      ratings = {}
      for season in episodes:
          ratings[season] = collapse(episodes[season])
      return co.OrderedDict(sorted(ratings.items()))
docs: Ratings of all the episodes of all the seasons