code: def test_feature_value():
      value = FeatureValue(
          feature_name="feature1",
          value_as_string="value1",
      )
  
      assert ordered(value.to_dict()) == ordered(
          {
              "FeatureName": "feature1",
              "ValueAsString": "value1",
          }
      )
  
      collection_value = FeatureValue(
          feature_name="feature2",
          value_as_string_list=["value1", "value2"],
      )
  
      assert ordered(collection_value.to_dict()) == ordered(
          {
              "FeatureName": "feature2",
              "ValueAsStringList": ["value1", "value2"],
          }
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/feature_store/test_inputs.py
imports: from __future__ import absolute_import
  from sagemaker.feature_store.inputs import OnlineStoreSecurityConfig, OnlineStoreConfig, S3StorageConfig, DataCatalogConfig, OfflineStoreConfig, FeatureParameter, TableFormatEnum, OnlineStoreStorageTypeEnum, Filter, FilterOperatorEnum, Identifier, FeatureValue
label_desc: Use image node_id 14 for calling a global function with example usage: test_feature_value() without return types