code: def test_feature_processor_config_is_immutable():
      fp_config = FeatureProcessorConfig.create(
          inputs=[tdh.FEATURE_GROUP_DATA_SOURCE, tdh.S3_DATA_SOURCE],
          output=tdh.OUTPUT_FEATURE_GROUP_ARN,
          mode=FeatureProcessorMode.PYSPARK,
          target_stores=None,
          enable_ingestion=True,
          parameters=None,
          spark_config=None,
      )
  
      with pytest.raises(attr.exceptions.FrozenInstanceError):
          # Only attempting one field, as FrozenInstanceError indicates all fields are frozen
          # (as opposed to FrozenAttributeError).
          fp_config.inputs = []
  
      with pytest.raises(
          TypeError,
          match="'FeatureProcessorConfig' object does not support item assignment",
      ):
          fp_config["inputs"] = []
  
imports: from __future__ import absolute_import
  import attr
  import pytest
  import test_data_helpers
  from sagemaker.feature_store.feature_processor._enums import FeatureProcessorMode
  from sagemaker.feature_store.feature_processor._feature_processor_config import FeatureProcessorConfig
label_desc: Use image node_id 1 for calling a global function with example usage: test_feature_processor_config_is_immutable() without return types