<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def turn_emails_off(view_func):
 """Turns emails off so no emails will be sent."""


    # Dummy email backend so no emails are sent.
    EMAIL_BACKEND_DUMMY = 'django.core.mail.backends.dummy.EmailBackend'

    def decorated(request, *args, **kwargs):
        orig_email_backend = settings.EMAIL_BACKEND
        settings.EMAIL_BACKEND = EMAIL_BACKEND_DUMMY

        response = view_func(request, *args, **kwargs)
        settings.EMAIL_BACKEND = orig_email_backend
        return response

    return decorated