code: def test_is_training_job(mocked_open):
      mocked_open.side_effect = mock_open(
          read_data=json.dumps(SINGLE_NODE_RESOURCE_CONFIG)
      )
  
      assert EnvironmentHelper().is_training_job() is True
  
      mocked_open.assert_called_once_with(
          "/opt/ml/input/config/resourceconfig.json", "r"
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/feature_store/feature_processor/test_env.py
imports: from __future__ import absolute_import
  import json
  from mock import mock_open, patch
  import pytest
  from sagemaker.feature_store.feature_processor._env import EnvironmentHelper
label_desc: Use image node_id 1 for calling a global function with example usage: test_is_training_job(mocked_open) without return types