'Delegated rendering of a student view when in a time
limited view. This ultimately calls down into edx_proctoring
pip installed djangoapp'

def _time_limited_student_view(self):

    view_html = None
    proctoring_service = self.runtime.service(self, 'proctoring')
    credit_service = self.runtime.service(self, 'credit')
    verification_service = self.runtime.service(self, 'verification')
    feature_enabled = (proctoring_service and credit_service and self.is_time_limited)
    if feature_enabled:
        user_id = self.runtime.user_id
        user_role_in_course = ('staff' if self.runtime.user_is_staff else 'student')
        course_id = self.runtime.course_id
        content_id = self.location
        context = {'display_name': self.display_name, 'default_time_limit_mins': (self.default_time_limit_minutes if self.default_time_limit_minutes else 0), 'is_practice_exam': self.is_practice_exam, 'allow_proctoring_opt_out': self.allow_proctoring_opt_out, 'due_date': self.due}
        if credit_service:
            credit_state = credit_service.get_credit_state(user_id, course_id)
            if credit_state:
                context.update({'credit_state': credit_state})
        if verification_service:
            (verification_status, __) = verification_service.get_status(user_id)
            context.update({'verification_status': verification_status, 'reverify_url': verification_service.reverify_url()})
        view_html = proctoring_service.get_student_view(user_id=user_id, course_id=course_id, content_id=content_id, context=context, user_role=user_role_in_course)
    return view_html
