code: def test_has_access_no_details_when_no_permission(
      self,
      mock_render_template,
      mock_get_auth_manager,
      decorator_name,
      is_authorized_method_name,
  ):
      auth_manager = Mock()
      is_authorized_method = Mock()
      is_authorized_method.return_value = False
      setattr(
          auth_manager, is_authorized_method_name, is_authorized_method
      )
      auth_manager.is_logged_in.return_value = True
      auth_manager.is_authorized_view.return_value = False
      mock_get_auth_manager.return_value = auth_manager
  
      getattr(auth, decorator_name)("GET")(self.method_test)()
  
      mock_call.assert_not_called()
      mock_render_template.assert_called_once()
  
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 4 for calling the TestHasAccessNoDetails obj's underlying member method code with example usage: obj.test_has_access_no_details_when_no_permission(mock_render_template, mock_get_auth_manager, decorator_name, is_authorized_method_name) without return types