code: def test_has_access_decorator_raises_deprecation_warning(self):
      with pytest.warns(RemovedInAirflow3Warning):
  
          @has_access
          def test_function():
              pass
  
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 1 for calling the TestHasAccessDecorator obj's underlying member method code with example usage: obj.test_has_access_decorator_raises_deprecation_warning() without return types