code: def convert_retrieved_to_md(retrieved):
      output_str = (
          "<table><tr><th>Query</th><th>Retrieved Doc</th></tr>"
      )
      for item in retrieved:
          output_str += f'<tr><td rowspan="{len(item["neighbors"])}">{item["query"]}</td>'
          for i, neighbor in enumerate(item["neighbors"]):
              if i == 0:
                  output_str += f"<td>{neighbor}</td></tr>"
              else:
                  output_str += f"<tr><td>{neighbor}</td></tr>"
      output_str += "</table>"
      return output_str
  
imports: import json
  import threading
  import requests
label_desc: Use image node_id 3 for calling a global function with example usage: convert_retrieved_to_md(retrieved) and returns: output_str