code: def entity_from_snapshot(snapshot):
      
      assert isinstance(snapshot, AbstractSnapshop), type(snapshot)
      if snapshot.state is not None:
          entity_class = resolve_topic(snapshot.topic)
          return reconstruct_object(entity_class, snapshot.state)
docs: Reconstructs domain entity from given snapshot.