code: def test_session_factory_s3_kwargs():
      """Get an AWSSession for s3:// paths with keywords"""
      pytest.importorskip("boto3")
      sesh = Session.from_path(
          "s3://lol/wut",
          aws_access_key_id="foo",
          aws_secret_access_key="bar",
      )
      assert isinstance(sesh, AWSSession)
      assert sesh._session.get_credentials().access_key == "foo"
      assert sesh._session.get_credentials().secret_key == "bar"
  
imports: from unittest import mock
  import pytest
  from fiona.session import DummySession, AWSSession, Session, OSSSession, GSSession, SwiftSession, AzureSession
label_desc: Use image node_id 16 for calling a global function with example usage: test_session_factory_s3_kwargs() without return types