code: def test_init_with_legacy_field():
      doc = 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"},
      )
      assert (
          doc.id
          == "a2c0321b34430cc675294611e55529fceb56140ca3202f1c59a43a8cecac1f43"
      )
      assert doc.content == "test text"
      assert doc.dataframe == None
      assert doc.meta == {"date": "10-10-2023", "type": "article"}
      assert doc.score == 0.812
      assert doc.embedding == [0.1, 0.2, 0.3]
  
imports: import pandas
  import pytest
  from haystack import Document
  from haystack.dataclasses.byte_stream import ByteStream
label_desc: Use image node_id 6 for calling a global function with example usage: test_init_with_legacy_field() without return types