code: def parse_related_questions_response_to_html_list(response):
      soup = BeautifulSoup(response, "html.parser")
      for item in soup.find_all("li"):
          if item.string is not None:
              link = soup.new_tag(
                  "a",
                  href=url_for(
                      "chatui.question",
                      ask=urllib.parse.quote_plus(item.string),
                  ),
              )
              link.string = item.string
              item.string = ""
              item.append(link)
      return soup
  
imports: from flask import Blueprint, render_template, request, redirect, url_for, json
  import markdown
  import markdown.extensions.fenced_code
  from bs4 import BeautifulSoup
  import urllib
  import os
  from datetime import datetime
  from pytz import timezone
  import pytz
  import uuid
  from scripts import read_config
  from chroma import Format
  from docs_agent import DocsAgent
label_desc: Use image node_id 7 for calling a global function with example usage: parse_related_questions_response_to_html_list(response) and returns: soup