docstr: Load a theme from a json file.
  
  Parameters:
      path: The filepath to read.
docstr_tok: ["Load","a","theme","from","a","json","file",".","Parameters",":","path",":","The","filepath","to","read","."]
code: def load(cls, path: str) -> ThemeClass:
      """Load a theme from a json file.
  
      Parameters:
          path: The filepath to read.
      """
      with open(path) as fp:
          return cls.from_dict(json.load(fp, object_hook=fonts.as_font))
  
imports: from __future__ import annotations
  import json
  import re
  import tempfile
  import textwrap
  from pathlib import Path
  from typing import Iterable
  import huggingface_hub
  import semantic_version
  from gradio_client.documentation import document, set_documentation_group
  from huggingface_hub import CommitOperationAdd
  from gradio.themes.utils import colors, fonts, get_matching_version, get_theme_assets, sizes
  from gradio.themes.utils.readme_content import README_CONTENT
label_desc: Use image node_id 4 for calling the ThemeClass obj's underlying member method code with example usage: obj.load(cls, path) and returns: cls