def METHOD_NAME(self):
    data = {
        "type": "MemoryRetriever",
        "init_parameters": {"document_store": {"type": "NonexistingDocstore", "init_parameters": {}}},
    }
    with pytest.raises(DeserializationError, match="DocumentStore type 'NonexistingDocstore' not found"):
        MemoryRetriever.from_dict(data)