code: def test_from_dict_with_flat_and_non_flat_meta():
      with pytest.raises(
          ValueError,
          match="Pass either the 'meta' parameter or flattened metadata keys",
      ):
          Document.from_dict(
              {
                  "content": "test text",
                  "dataframe": pd.DataFrame([0]).to_json(),
                  "blob": {
                      "data": list(b"some bytes"),
                      "mime_type": "text/markdown",
                  },
                  "score": 0.812,
                  "meta": {"test": 10},
                  "embedding": [0.1, 0.2, 0.3],
                  "date": "10-10-2023",
                  "type": "article",
              }
          )
  
imports: import pandas
  import pytest
  from haystack import Document
  from haystack.dataclasses.byte_stream import ByteStream
label_desc: Use image node_id 18 for calling a global function with example usage: test_from_dict_with_flat_and_non_flat_meta() without return types