class_docstr: Test InMemoryDocumentStore's specific features
class_docstr_tok: ["Test","InMemoryDocumentStore","'s","specific","features"]
code: def test_bm25_retrieval_with_text_and_table_content(
      self, document_store: InMemoryDocumentStore, caplog
  ):
      table_content = pd.DataFrame(
          {
              "language": ["Python", "Java"],
              "use": ["Data Science", "Web Development"],
          }
      )
      document = Document(content="Gardening", dataframe=table_content)
      docs = [
          document,
          Document(content="Python"),
          Document(content="Bird Watching"),
          Document(content="Gardening"),
          Document(content="Java"),
      ]
      document_store.write_documents(docs)
      results = document_store.bm25_retrieval(
          query="Gardening", top_k=2
      )
      assert document.id in [d.id for d in results]
      assert "both text and dataframe content" in caplog.text
      results = document_store.bm25_retrieval(query="Python", top_k=2)
      assert document.id not in [d.id for d in results]
  
imports: import logging
  from unittest.mock import patch
  import pandas
  import pytest
  from haystack import Document
  from haystack.document_stores.errors import DocumentStoreError, DuplicateDocumentError
  from haystack.document_stores.in_memory import InMemoryDocumentStore
  from haystack.testing.document_store import DocumentStoreBaseTests
label_desc: Use image node_id 14 for calling the TestMemoryDocumentStore obj's underlying member method code with example usage: obj.test_bm25_retrieval_with_text_and_table_content(document_store, caplog) without return types