docstr: Convert the theme into a python dictionary.
docstr_tok: ["Convert","the","theme","into","a","python","dictionary","."]
code: def to_dict(self):
      """Convert the theme into a python dictionary."""
      schema = {"theme": {}}
      for prop in dir(self):
          if (
              not prop.startswith("_")
              or prop.startswith("_font")
              or prop == "_stylesheets"
              or prop == "name"
          ) and isinstance(getattr(self, prop), (list, str)):
              schema["theme"][prop] = getattr(self, prop)
      return schema
  
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 3 for calling the ThemeClass obj's underlying member method code with example usage: obj.to_dict() and returns: schema