code: def as_font(dct):
      if "__gradio_font__" in dct:
          name = dct["name"]
          return (
              GoogleFont(name)
              if dct["class"] == "google"
              else Font(name)
          )
      return dct
  
file_path: gradio/gradio/themes/utils/fonts.py
imports: from __future__ import annotations
  import json
  from typing import Iterable
label_desc: Use image node_id 1 for calling a global function with example usage: as_font(dct) and returns: dct, unknown