code: def test_is_authorized_successful(
      self,
      facade,
      entity_id,
      context,
      user,
      expected_entities,
      expected_context,
      avp_response,
      expected,
  ):
      mock_is_authorized = Mock(return_value=avp_response)
      facade.avp_client.is_authorized = mock_is_authorized
  
      method: ResourceMethod = "GET"
      entity_type = AvpEntities.VARIABLE
  
      with conf_vars(
          {
              (
                  "aws_auth_manager",
                  "avp_policy_store_id",
              ): AVP_POLICY_STORE_ID,
          }
      ):
          result = facade.is_authorized(
              method=method,
              entity_type=entity_type,
              entity_id=entity_id,
              user=user,
              context=context,
          )
  
      params = prune_dict(
          {
              "policyStoreId": AVP_POLICY_STORE_ID,
              "principal": {
                  "entityType": "Airflow::User",
                  "entityId": user.get_id(),
              },
              "action": {
                  "actionType": "Airflow::Action",
                  "actionId": get_action_id(entity_type, method),
              },
              "resource": {
                  "entityType": get_entity_type(entity_type),
                  "entityId": entity_id or "*",
              },
              "entities": {"entityList": expected_entities},
              "context": expected_context,
          }
      )
  
      mock_is_authorized.assert_called_once_with(**params)
  
      assert result == expected
  
file_path: airflow/tests/providers/amazon/aws/auth_manager/avp/test_facade.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from unittest.mock import Mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.amazon.aws.auth_manager.avp.entities import AvpEntities, get_action_id, get_entity_type
  from airflow.providers.amazon.aws.auth_manager.avp.facade import AwsAuthManagerAmazonVerifiedPermissionsFacade
  from airflow.providers.amazon.aws.auth_manager.user import AwsAuthManagerUser
  from airflow.utils.helpers import prune_dict
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 4 for calling the TestAwsAuthManagerAmazonVerifiedPermissionsFacade obj's underlying member method code with example usage: obj.test_is_authorized_successful(facade, entity_id, context, user, expected_entities, expected_context, avp_response, expected) without return types