code: def test_spark_session_factory_get_spark_session_with_iceberg_config(
      env_helper,
  ):
      spark_session_factory = SparkSessionFactory(env_helper)
      iceberg_configs = dict(
          spark_session_factory._get_iceberg_configs(
              "s3://test/path", "Catalog"
          )
      )
  
      assert (
          iceberg_configs.get("spark.sql.catalog.catalog")
          == "smfs.shaded.org.apache.iceberg.spark.SparkCatalog"
      )
      assert (
          iceberg_configs.get("spark.sql.catalog.catalog.warehouse")
          == "s3://test/path"
      )
      assert (
          iceberg_configs.get("spark.sql.catalog.catalog.catalog-impl")
          == "smfs.shaded.org.apache.iceberg.aws.glue.GlueCatalog"
      )
      assert (
          iceberg_configs.get("spark.sql.catalog.catalog.io-impl")
          == "smfs.shaded.org.apache.iceberg.aws.s3.S3FileIO"
      )
      assert (
          iceberg_configs.get(
              "spark.sql.catalog.catalog.glue.skip-name-validation"
          )
          == "true"
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/feature_store/feature_processor/test_spark_session_factory.py
imports: from __future__ import absolute_import
  import feature_store_pyspark
  import pytest
  from mock import Mock, patch, call
  from sagemaker.feature_store.feature_processor._spark_factory import FeatureStoreManagerFactory, SparkSessionFactory
label_desc: Use image node_id 8 for calling a global function with example usage: test_spark_session_factory_get_spark_session_with_iceberg_config(env_helper) without return types