code: def test_aws_session_class_endpoint():
      """Confirm that endpoint_url kwarg works."""
      pytest.importorskip("boto3")
      sesh = AWSSession(endpoint_url="example.com")
      assert (
          sesh.get_credential_options()["AWS_S3_ENDPOINT"]
          == "example.com"
      )
  
imports: from unittest import mock
  import pytest
  from fiona.session import DummySession, AWSSession, Session, OSSSession, GSSession, SwiftSession, AzureSession
label_desc: Use image node_id 8 for calling a global function with example usage: test_aws_session_class_endpoint() without return types