code: def convert_context_to_csv(self, context):
          
          content = []
          date_headers = context['date_headers']
  
          headers = ['Name']
          headers.extend([date.strftime('%m/%d/%Y') for date in date_headers])
          headers.append('Total')
          content.append(headers)
  
          summaries = context['summaries']
  
          summary = summaries.get(self.export, [])
  
          for rows, totals in summary:
              for name, user_id, hours in rows:
                  data = [name]
                  data.extend(hours)
                  content.append(data)
              total = ['Totals']
              total.extend(totals)
              content.append(total)
          return content
docs: Convert the context dictionary into a CSV file.