def METHOD_NAME(cls, data: Dict[str, Any]) -> "MemoryRetriever":
    """
    Deserialize this component from a dictionary.
    """
    init_params = data.get("init_parameters", {})
    if "document_store" not in init_params:
        raise DeserializationError("Missing 'document_store' in serialization data")
    if "type" not in init_params["document_store"]:
        raise DeserializationError("Missing 'type' in document store's serialization data")
    if init_params["document_store"]["type"] not in document_store.registry:
        raise DeserializationError(f"DocumentStore type '{init_params['document_store']['type']}' not found")
    docstore_class = document_store.registry[init_params["document_store"]["type"]]
    docstore = docstore_class.METHOD_NAME(init_params["document_store"])
    data["init_parameters"]["document_store"] = docstore
    return default_from_dict(cls, data)