code: def _get_next_version(
      space_info: huggingface_hub.hf_api.SpaceInfo,
  ) -> str:
      assets = get_theme_assets(space_info)
      latest_version = max(
          assets, key=lambda asset: asset.version
      ).version
      return str(latest_version.next_patch())
  
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 8 for calling the ThemeClass obj's underlying member method code with example usage: obj._get_next_version(space_info) and returns: str