code: def test_collection_type_feature_definition():
      definition_integral_list = IntegralFeatureDefinition(
          feature_name="MyIntList", collection_type=ListCollectionType()
      )
      assert ordered(definition_integral_list.to_dict()) == ordered(
          {
              "FeatureName": "MyIntList",
              "FeatureType": "Integral",
              "CollectionType": "List",
          }
      )
  
      definition_string_set = StringFeatureDefinition(
          feature_name="MyStringSet",
          collection_type=SetCollectionType(),
      )
      assert ordered(definition_string_set.to_dict()) == ordered(
          {
              "FeatureName": "MyStringSet",
              "FeatureType": "String",
              "CollectionType": "Set",
          }
      )
  
      definition_vector_feature = FractionalFeatureDefinition(
          feature_name="MyVector",
          collection_type=VectorCollectionType(dimension=10),
      )
      assert ordered(definition_vector_feature.to_dict()) == ordered(
          {
              "FeatureName": "MyVector",
              "FeatureType": "Fractional",
              "CollectionType": "Vector",
              "CollectionConfig": {"VectorConfig": {"Dimension": 10}},
          }
      )
  
imports: from __future__ import absolute_import
  from sagemaker.feature_store.feature_definition import FeatureDefinition, FeatureTypeEnum, IntegralFeatureDefinition, FractionalFeatureDefinition, StringFeatureDefinition, VectorCollectionType, ListCollectionType, SetCollectionType
label_desc: Use image node_id 4 for calling a global function with example usage: test_collection_type_feature_definition() without return types