docs: def button(request):
      """If the user is logged in, returns the logout button, otherwise returns the login button"""
      if not authenticated_userid(request):
          return markupsafe.Markup(SIGNIN_HTML)
      else:
          return markupsafe.Markup(SIGNOUT_HTML)