def logout(self, redirect_to='/'):
        def _logout(env, data):
            location = redirect_to
            if location is None and env.request.referer:
                location = env.request.referer
            elif location is None:
                location = '/'
            response = HTTPSeeOther(location=str(location))
            self.logout_user(env.request, response)
            return response
        return web.match('/logout', 'logout') | web.method('post') | _logout
Transposes an image by either rotating or flipping it.
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/auth.py/CookieAuth.logout--crossover with--dataset/ETHPy150Open pallets/click/examples/imagepipe/imagepipe.py/transpose_cmd