code: def test_aws_session_class_session():
      """AWSSession works"""
      boto3 = pytest.importorskip("boto3")
      sesh = AWSSession(
          session=boto3.session.Session(
              aws_access_key_id="foo", aws_secret_access_key="bar"
          )
      )
      assert sesh._session
      assert sesh.get_credential_options()["AWS_ACCESS_KEY_ID"] == "foo"
      assert (
          sesh.get_credential_options()["AWS_SECRET_ACCESS_KEY"]
          == "bar"
      )
  
imports: from unittest import mock
  import pytest
  from rasterio.session import DummySession, AWSSession, Session, OSSSession, GSSession, SwiftSession, AzureSession, parse_bool
label_desc: Use image node_id 6 for calling a global function with example usage: test_aws_session_class_session() without return types