code: def test_to_dict_with_custom_parameters_without_flattening():
      doc = Document(
          content="test text",
          dataframe=pd.DataFrame([10, 20, 30]),
          blob=ByteStream(b"some bytes", mime_type="application/pdf"),
          meta={"some": "values", "test": 10},
          score=0.99,
          embedding=[10.0, 10.0],
      )
  
      assert doc.to_dict(flatten=False) == {
          "id": doc.id,
          "content": "test text",
          "dataframe": pd.DataFrame([10, 20, 30]).to_json(),
          "blob": {
              "data": list(b"some bytes"),
              "mime_type": "application/pdf",
          },
          "meta": {"some": "values", "test": 10},
          "score": 0.99,
          "embedding": [10, 10],
      }
  
imports: import pandas
  import pytest
  from haystack import Document
  from haystack.dataclasses.byte_stream import ByteStream
label_desc: Use image node_id 12 for calling a global function with example usage: test_to_dict_with_custom_parameters_without_flattening() without return types