code: def test_spark_session_factory_configuration_on_training_job():
      env_helper = Mock()
      spark_config = {"spark.test.key": "spark.test.value"}
      spark_session_factory = SparkSessionFactory(
          env_helper, spark_config
      )
  
      spark_config = spark_session_factory._get_spark_configs(
          is_training_job=True
      )
      assert (
          dict(spark_config).get("spark.test.key") == "spark.test.value"
      )
  
      assert all(tup[0] != "spark.jars" for tup in spark_config)
      assert all(
          tup[0] != "spark.jars.packages" for tup in spark_config
      )
  
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 3 for calling a global function with example usage: test_spark_session_factory_configuration_on_training_job() without return types