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_serialization(
      self,
      influence_conversation: bool,
      mappings: List[Dict[Text, Any]],
  ):
      slot = self.create_slot(mappings, influence_conversation)
  
      persistence_info = slot.persistence_info()
  
      slot_type = Slot.resolve_by_type(persistence_info.get("type"))
      recreated = slot_type(
          slot.name,
          **{k: v for k, v in persistence_info.items() if k != "type"},
      )
  
      assert isinstance(slot, slot_type)
      assert recreated.persistence_info() == persistence_info
  
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 10 for calling the SlotTestCollection obj's underlying member method code with example usage: obj.test_serialization(influence_conversation, mappings) without return types