def METHOD_NAME(
    environment_api_key: "EnvironmentAPIKey",
) -> None:
    # Given
    expected_client_api_key = environment_api_key.environment.api_key
    expected_created_at = environment_api_key.created_at.isoformat()
    expected_key = environment_api_key.key
    # When
    result = dynamodb.map_environment_api_key_to_environment_api_key_document(
        environment_api_key,
    )
    # Then
    assert result == {
        "active": True,
        "client_api_key": expected_client_api_key,
        "created_at": expected_created_at,
        "expires_at": None,
        "id": Decimal(environment_api_key.pk),
        "key": expected_key,
        "name": "Test API Key",
    }