code: def test_get_session_kwargs_deprecation(
      self,
      aws_access_key_id,
      aws_secret_access_key,
      aws_session_token,
      profile_name,
      region_name,
  ):
      mock_conn_extra_session_kwargs = {
          "aws_access_key_id": aws_access_key_id,
          "aws_secret_access_key": aws_secret_access_key,
          "aws_session_token": aws_session_token,
          "profile_name": profile_name,
          "region_name": region_name,
      }
      mock_conn = mock_connection_factory(
          extra={"session_kwargs": mock_conn_extra_session_kwargs}
      )
      expected = {}
      if aws_access_key_id and aws_secret_access_key:
          expected["aws_access_key_id"] = aws_access_key_id
          expected["aws_secret_access_key"] = aws_secret_access_key
      if aws_session_token:
          expected["aws_session_token"] = aws_session_token
      if profile_name:
          expected["profile_name"] = profile_name
      if region_name:
          expected["region_name"] = region_name
  
      warning_message = (
          r"'session_kwargs' in extra config is deprecated and will be removed in a future releases. "
          r"Please specify arguments passed to boto3 Session directly in .* extra."
      )
      with pytest.warns(
          AirflowProviderDeprecationWarning, match=warning_message
      ):
          wrap_conn = AwsConnectionWrapper(conn=mock_conn)
      session_kwargs = wrap_conn.session_kwargs
      assert session_kwargs == expected
  
imports: from __future__ import annotations
  import os
  from dataclasses import fields
  from unittest import mock
  import pytest
  from botocore import UNSIGNED
  from botocore.config import Config
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.models import Connection
  from airflow.providers.amazon.aws.utils.connection_wrapper import AwsConnectionWrapper, _ConnectionMetadata
label_desc: Use image node_id 11 for calling the TestAwsConnectionWrapper obj's underlying member method code with example usage: obj.test_get_session_kwargs_deprecation(aws_access_key_id, aws_secret_access_key, aws_session_token, profile_name, region_name) without return types