code: def test_has_access_with_details_when_authorized(
      self,
      mock_get_auth_manager,
      decorator_name,
      is_authorized_method_name,
      items,
      request,
  ):
      items = request.getfixturevalue(items)
      auth_manager = Mock()
      is_authorized_method = Mock()
      is_authorized_method.return_value = True
      setattr(
          auth_manager, is_authorized_method_name, is_authorized_method
      )
      mock_get_auth_manager.return_value = auth_manager
  
      result = getattr(auth, decorator_name)("GET")(self.method_test)(
          None, items
      )
  
      mock_call.assert_called_once()
      assert result is True
  
imports: from __future__ import annotations
  from unittest.mock import Mock, patch
  import pytest
  import airflow.www.auth
  from airflow.auth.managers.models.resource_details import DagAccessEntity
  from airflow.exceptions import RemovedInAirflow3Warning
  from airflow.models import Connection, Pool, Variable
  from airflow.security import permissions
  from airflow.settings import json
  from airflow.www.auth import has_access
  from tests.test_utils.api_connexion_utils import create_user_scope
label_desc: Use image node_id 3 for calling the TestHasAccessWithDetails obj's underlying member method code with example usage: obj.test_has_access_with_details_when_authorized(mock_get_auth_manager, decorator_name, is_authorized_method_name, items, request) without return types