code: def run_pnginfo(image):
      if image is None:
          return "", "", ""
  
      geninfo, items = images.read_info_from_image(image)
      items = {**{"parameters": geninfo}, **items}
  
      info = ""
      for key, text in items.items():
          info += (
              f"""
  <div>
  <p><b>{plaintext_to_html(str(key))}</b></p>
  <p>{plaintext_to_html(str(text))}</p>
  </div>
  """.strip()
              + "\n"
          )
  
      if len(info) == 0:
          message = "Nothing found in the image."
          info = f"<div><p>{message}<p></div>"
  
      return "", geninfo, info
  
file_path: stable-diffusion-webui/modules/extras.py
imports: import os
  import re
  import shutil
  import json
  import torch
  import tqdm
  from modules import shared, images, sd_models, sd_vae, sd_models_config, errors
  from modules.ui_common import plaintext_to_html
  import gradio
  import safetensors.torch
label_desc: Use image node_id 1 for calling a global function with example usage: run_pnginfo(image) and returns: str,  geninfo,  info, str,  str,  str