code: def test_aws_session_class_unsigned(monkeypatch):
      """AWSSession works"""
      sesh = AWSSession(
          aws_unsigned=True,
          region_name="us-mountain-1",
          endpoint_url="http://localhost:9090",
      )
      assert (
          sesh.get_credential_options()["AWS_NO_SIGN_REQUEST"] == "YES"
      )
      assert (
          sesh.get_credential_options()["AWS_REGION"] == "us-mountain-1"
      )
      assert (
          sesh.get_credential_options()["AWS_S3_ENDPOINT"]
          == "http://localhost:9090"
      )
  
      # default to environment variable when not set
      monkeypatch.setenv("AWS_NO_SIGN_REQUEST", "YES")
      sesh = AWSSession()
      assert sesh.unsigned is True
      assert (
          sesh.get_credential_options()["AWS_NO_SIGN_REQUEST"] == "YES"
      )
  
      # Arguments override environment variable
      sesh = AWSSession(
          aws_access_key_id="fake",
          aws_secret_access_key="fake",
          aws_unsigned=False,
      )
      assert sesh.unsigned is False
      assert "AWS_NO_SIGN_REQUEST" not in sesh.get_credential_options()
  
      monkeypatch.undo()
  
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 7 for calling a global function with example usage: test_aws_session_class_unsigned(monkeypatch) without return types