code: def _theme_version_exists(
      space_info: huggingface_hub.hf_api.SpaceInfo, version: str
  ) -> bool:
      assets = get_theme_assets(space_info)
      return any(a.version == semver.Version(version) for a in assets)
  
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 9 for calling the ThemeClass obj's underlying member method code with example usage: obj._theme_version_exists(space_info, version) and returns: any