class_docstr: Test InMemoryDocumentStore's specific features
class_docstr_tok: ["Test","InMemoryDocumentStore","'s","specific","features"]
code: def test_bm25_retrieval_with_two_queries(
      self, document_store: InMemoryDocumentStore
  ):
      # Tests if the bm25_retrieval method returns different documents for different queries.
      docs = [
          Document(
              content="Javascript is a popular programming language"
          ),
          Document(content="Java is a popular programming language"),
          Document(content="Python is a popular programming language"),
          Document(content="Ruby is a popular programming language"),
          Document(content="PHP is a popular programming language"),
      ]
      document_store.write_documents(docs)
  
      results = document_store.bm25_retrieval(query="Java", top_k=1)
      assert (
          results[0].content == "Java is a popular programming language"
      )
  
      results = document_store.bm25_retrieval(query="Python", top_k=1)
      assert (
          results[0].content
          == "Python is a popular programming language"
      )
  
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 10 for calling the TestMemoryDocumentStore obj's underlying member method code with example usage: obj.test_bm25_retrieval_with_two_queries(document_store) without return types