code: def test_from_dict_nonexisting_docstore(self):
      data = {
          "type": "DocumentWriter",
          "init_parameters": {
              "document_store": {
                  "type": "Nonexisting.DocumentStore",
                  "init_parameters": {},
              }
          },
      }
      with pytest.raises(DeserializationError):
          DocumentWriter.from_dict(data)
  
file_path: haystack/test/components/writers/test_document_writer.py
imports: import pytest
  from haystack import Document, DeserializationError
  from haystack.testing.factory import document_store_class
  from haystack.components.writers.document_writer import DocumentWriter
  from haystack.document_stores.types import DuplicatePolicy
  from haystack.document_stores.in_memory import InMemoryDocumentStore
label_desc: Use image node_id 6 for calling the TestDocumentWriter obj's underlying member method code with example usage: obj.test_from_dict_nonexisting_docstore() without return types