code: def test_can_handle_error_on_decrypt(session, admin_client):
      # create valid variable
      admin_client.post(
          "/variable/add", data=VARIABLE, follow_redirects=True
      )
  
      # update the variable with a wrong value, given that is encrypted
      session.query(Variable).filter(
          Variable.key == VARIABLE["key"]
      ).update(
          {"val": "failed_value_not_encrypted"},
          synchronize_session=False,
      )
      session.commit()
  
      # retrieve Variables page, should not fail and contain the Invalid
      # label for the variable
      resp = admin_client.get("/variable/list", follow_redirects=True)
      check_content_in_response(
          '<span class="label label-danger">Invalid</span>',
          resp,
      )
  
imports: from __future__ import annotations
  from io import BytesIO
  from unittest import mock
  import pytest
  from airflow.models import Variable
  from airflow.security import permissions
  from airflow.utils.session import create_session
  from tests.test_utils.api_connexion_utils import create_user
  from tests.test_utils.www import _check_last_log, check_content_in_response, check_content_not_in_response, client_with_login
label_desc: Use image node_id 4 for calling a global function with example usage: test_can_handle_error_on_decrypt(session, admin_client) without return types