human
Solve the following python programming problem given the following code:
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def get_anon_ids(request, course_id):
assistant
#Here is the Python program you requested.

    """Respond with 2-column CSV output of user-id, anonymized-user-id
    """
    course_id = SlashSeparatedCourseKey.from_deprecated_string(course_id)
    def csv_response(filename, header, rows):
        'Returns    a    CSV    http    response    for    the    given    header    and    rows    (excel/utf-8).'
        response = HttpResponse(content_type='text/csv')
        response['Content-Disposition'] = 'attachment;    filename={0}'.format(unicode(filename).encode('utf-8'))
        writer = csv.writer(response, dialect='excel', quotechar='"', quoting=csv.QUOTE_ALL)
        encoded = [unicode(s).encode('utf-8') for s in header]
        writer.writerow(encoded)
        for row in rows:
            encoded = [unicode(s).encode('utf-8') for s in row]
            writer.writerow(encoded)
        return response
    students = User.objects.filter(courseenrollment__course_id=course_id).order_by('id')
    header = ['User    ID', 'Anonymized    User    ID', 'Course    Specific    Anonymized    User    ID']
    rows = [[s.id, unique_id_for_user(s, save=False), anonymous_id_for_user(s, course_id, save=False)] for s in students]
    return csv_response((course_id.to_deprecated_string().replace('/', '-') + '-anon-ids.csv'), header, rows)