class_docstr: For unit tests and debugging (does not need a running server).
class_docstr_tok: ["For","unit","tests","and","debugging","(","does","not","need","a","running","server",")","."]
code: def retrieve(
      self, queries: List[str], num_ret: int = DEFAULT_NUM_TO_RETRIEVE
  ) -> List[Dict[str, Any]]:
      all_docs = []
      for query in queries:
          if query == self.skip_query_token:
              docs = None
          else:
              docs = []
              for idx in range(num_ret):
                  doc = self.create_content_dict(
                      f'content {idx} for query "{query}"',
                      url=f"url_{idx}",
                      title=f"title_{idx}",
                  )
                  docs.append(doc)
          all_docs.append(docs)
      return all_docs
  
file_path: ParlAI/parlai/agents/rag/retrieve_api.py
imports: from abc import ABC, abstractmethod
  import requests
  from typing import Any, Dict, List
  from parlai.core.opt import Opt
  from parlai.utils import logging
label_desc: Use image node_id 1 for calling the SearchEngineRetrieverMock obj's underlying member method code with example usage: obj.retrieve(queries, num_ret) and returns: all_docs