code: def team_scores(self, team_scores, time):
          
          headers = ['Date', 'Home Team Name', 'Home Team Goals',
                     'Away Team Goals', 'Away Team Name']
          result = [headers]
          result.extend([score["utcDate"].split('T')[0],
                         score['homeTeam']['name'],
                         score['score']['fullTime']['homeTeam'],
                         score['score']['fullTime']['awayTeam'],
                         score['awayTeam']['name']]
                        for score in team_scores['matches']
                        if score['status'] == 'FINISHED')
          self.generate_output(result)
docs: Store output of team scores to a CSV file