def METHOD_NAME(request, submission_id):
    submission = get_submission_or_error(
        request, submission_id, TestRunProgramSubmission
    )
    filename = 'input.in'
    if is_zipfile(submission.input_file.read_using_cache()):
        filename = 'input.zip'
    return stream_file(submission.input_file, name=filename)