def METHOD_NAME(self):
    SomeOtherDocumentStore = document_store_class("SomeOtherDocumentStore")
    with pytest.raises(ValueError, match="document_store must be an instance of MemoryDocumentStore"):
        MemoryRetriever(SomeOtherDocumentStore())