code: def test_document_store_from_dict():
      MyStore = document_store_class("MyStore")
  
      store = MyStore.from_dict(
          {
              "type": "haystack.testing.factory.MyStore",
              "init_parameters": {},
          }
      )
      assert isinstance(store, MyStore)
  
file_path: haystack/test/testing/test_factory.py
imports: import pytest
  from haystack.dataclasses import Document
  from haystack.testing.factory import document_store_class, component_class
  from haystack.core.component import component
label_desc: Use image node_id 2 for calling a global function with example usage: test_document_store_from_dict() without return types