code: def reload_javascript():
      js = javascript_html()
      css = css_html()
  
      def template_response(*args, **kwargs):
          res = shared.GradioTemplateResponseOriginal(*args, **kwargs)
          res.body = res.body.replace(
              b"</head>", f"{js}</head>".encode("utf8")
          )
          res.body = res.body.replace(
              b"</body>", f"{css}</body>".encode("utf8")
          )
          res.init_headers()
          return res
  
      gr.routes.templates.TemplateResponse = template_response
  
file_path: stable-diffusion-webui/modules/ui_gradio_extensions.py
imports: import os
  import gradio
  from modules import localization, shared, scripts
  from modules.paths import script_path, data_path, cwd
label_desc: Use image node_id 4 for calling a global function with example usage: reload_javascript() and returns: res