class_docstr: Tests every slot needs to fulfill.
  
  Each slot can declare further tests on its own.
class_docstr_tok: ["Tests","every","slot","needs","to","fulfill",".","Each","slot","can","declare","further","tests","on","its","own","."]
code: def test_featurization(
      self,
      value_feature_pair: Tuple[Any, List[float]],
      mappings: List[Dict[Text, Any]],
  ):
      slot = self.create_slot(
          mappings=mappings, influence_conversation=True
      )
      value, expected = value_feature_pair
      slot.value = value
      assert slot.as_feature() == expected
      assert (
          len(slot.as_feature()) == slot.feature_dimensionality()
      ), "Wrong feature dimensionality"
  
      # now reset the slot to get initial value again
      slot.reset()
      assert (
          slot.value == slot.initial_value
      ), "Slot should be reset to its initial value"
  
imports: from typing import Any, Tuple, List, Dict, Text
  import pytest
  from _pytest.fixtures import SubRequest
  import rasa.shared.core.constants
  from rasa.shared.core.events import SlotSet
  from rasa.shared.core.slots import InvalidSlotTypeException, Slot, TextSlot, BooleanSlot, FloatSlot, ListSlot, CategoricalSlot, bool_from_any, AnySlot, InvalidSlotConfigError
  from rasa.shared.core.trackers import DialogueStateTracker
label_desc: Use image node_id 5 for calling the SlotTestCollection obj's underlying member method code with example usage: obj.test_featurization(value_feature_pair, mappings) without return types