code: def load_content(url):
      resp = None
      tries = 0
      while resp is None and tries < 5:
          try:
              resp = requests.get(url)
          except:
              tries = tries + 1
              logger.debug("failed to load %s, retry %d", url, tries)
      content = resp.text
      return BeautifulSoup(content, features="lxml")
  
imports: import json
  import os
  import pandas
  import requests
  import urllib
  from bs4 import BeautifulSoup
  from flask import render_template, request
  from logging import getLogger
  from dtale.app import build_app, get_instance
  from dtale.global_state import cleanup
  from dtale.views import startup
label_desc: Use image node_id 1 for calling a global function with example usage: load_content(url) and returns: BeautifulSoup