code: def generate_svg_script(text):
      with open("ui.js") as f:
          js_content = f.read()
      output = js_content
      output += "var text2 =`"
      output += text
      output += "`"
      # output += """
      # var tokens = $.map($.trim(text2).split("\\n"), function(val, i) {
      #     return $.trim(val).split("\\t")[0];
      # });
      # displayText(tokens);
      # """
      output += """
          var rows = $.map($.trim(text2).split("\\n"), function(val, i) {
              return [$.trim(val).split("\\t")];
          });
          displayText(rows);
          """
      return output
  
label_desc: Use image node_id 1 for calling a global function with example usage: generate_svg_script(text) and returns: output