def METHOD_NAME(self):
    MyFakeStore = document_store_class("MyFakeStore", bases=(MemoryDocumentStore,))
    document_store = MyFakeStore()
    document_store.to_dict = lambda: {"type": "MyFakeStore", "init_parameters": {}}
    component = MemoryRetriever(
        document_store=document_store, filters={"name": "test.txt"}, top_k=5, scale_score=False
    )
    data = component.to_dict()
    assert data == {
        "type": "MemoryRetriever",
        "init_parameters": {
            "document_store": {"type": "MyFakeStore", "init_parameters": {}},
            "filters": {"name": "test.txt"},
            "top_k": 5,
            "scale_score": False,
        },
    }