code: def test_content_type():
      assert Document(content="text").content_type == "text"
      assert (
          Document(dataframe=pd.DataFrame([0])).content_type == "table"
      )
  
      with pytest.raises(ValueError):
          _ = Document().content_type
  
      with pytest.raises(ValueError):
          _ = Document(
              content="text", dataframe=pd.DataFrame([0])
          ).content_type
  
imports: import pandas
  import pytest
  from haystack import Document
  from haystack.dataclasses.byte_stream import ByteStream
label_desc: Use image node_id 19 for calling a global function with example usage: test_content_type() without return types