code: def env_helper():
      return Mock(
          is_training_job=Mock(return_value=False),
          load_training_resource_config=Mock(return_value=None),
      )
  
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 1 for calling a global function with example usage: env_helper() and returns: Mock