code: def test_to_dict_without_flattening():
      doc = Document()
      assert doc.to_dict(flatten=False) == {
          "id": doc._create_id(),
          "content": None,
          "dataframe": None,
          "blob": None,
          "meta": {},
          "score": None,
          "embedding": None,
      }
  
imports: import pandas
  import pytest
  from haystack import Document
  from haystack.dataclasses.byte_stream import ByteStream
label_desc: Use image node_id 10 for calling a global function with example usage: test_to_dict_without_flattening() without return types