code: def unquote(text):
      if len(text) == 0 or text[0] != '"' or text[-1] != '"':
          return text
  
      try:
          return json.loads(text)
      except Exception:
          return text
  
imports: from __future__ import annotations
  import base64
  import io
  import json
  import os
  import re
  import gradio
  from modules.paths import data_path
  from modules import shared, ui_tempdir, script_callbacks, processing
  from PIL import Image
label_desc: Use image node_id 3 for calling a global function with example usage: unquote(text) and returns: text, json, text