code: def test_init_with_legacy_fields():
      doc = Document(
          content="test text", content_type="text", id_hash_keys=["content"], score=0.812, embedding=[0.1, 0.2, 0.3]  # type: ignore
      )
      assert (
          doc.id
          == "18fc2c114825872321cf5009827ca162f54d3be50ab9e9ffa027824b6ec223af"
      )
      assert doc.content == "test text"
      assert doc.dataframe == None
      assert doc.blob == None
      assert doc.meta == {}
      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 5 for calling a global function with example usage: test_init_with_legacy_fields() without return types