code: def test_session_aws_or_dummy_aws():
      """Get an AWSSession when boto3 is available"""
      boto3 = pytest.importorskip("boto3")
      assert isinstance(Session.aws_or_dummy(), AWSSession)
  
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 29 for calling a global function with example usage: test_session_aws_or_dummy_aws() without return types