code: def test_from_dict_with_legacy_field_and_flat_meta():
      assert Document.from_dict(
          {
              "content": "test text",
              "content_type": "text",
              "id_hash_keys": ["content"],
              "score": 0.812,
              "embedding": [0.1, 0.2, 0.3],
              "date": "10-10-2023",
              "type": "article",
          }
      ) == Document(
          content="test text",
          content_type="text",  # type: ignore
          id_hash_keys=["content"],  # type: ignore
          score=0.812,
          embedding=[0.1, 0.2, 0.3],
          meta={"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 16 for calling a global function with example usage: test_from_dict_with_legacy_field_and_flat_meta() without return types