@handle_response_format
@treeio_login_required
def user_logout(request, response_format='html'):
    logout(request)
    return HttpResponseRedirect(reverse('user_login'))
This method allows you to set the items in the dict.
dataset/ETHPy150Open treeio/treeio/treeio/core/views.py/user_logout--crossover with--dataset/ETHPy150Open editorconfig/editorconfig-vim/plugin/editorconfig-core-py/editorconfig/odict.py/OrderedDict.setitems