code: def to_html(df):
      # header = """<!DOCTYPE html>
      # <html>
      # <head>
      # <style>
      # table, th, td {
      #   border: 1px solid black;
      # }
      # </style>
      # </head>
      # <body>
      # """
      s = ["<table>"]
  
      # add header
      for el in df.columns:
          if el is np.nan:
              el = "--"
          else:
              s.append(f"<th>{el}</th>")
  
      for row in df.values:
          s.append("<tr>")
  
          first = True  # we apply "`" to the first element
          for el in row:
              if el is np.nan:
                  el = ""
  
              if first:
                  first = False
                  el = ", ".join([f"`{e}`" for e in el.split(", ")])
              s.append(f"<td>{el}</td>")
          s.append("</tr>")
      return s
  
label_desc: Use image node_id 1 for calling a global function with example usage: to_html(df) and returns: s