code: def test_get_version_from_wheel():
      assert (
          _get_version_from_file(
              Path("gradio_textwithattachments-0.0.3-py3-none.whl")
          )
          == "0.0.3"
      )
      assert (
          _get_version_from_file(
              Path("gradio_textwithattachments-1.0.3b12-py3-none.whl")
          )
          == "1.0.3b12"
      )
  
file_path: gradio/test/test_gradio_component_cli.py
imports: import shutil
  import textwrap
  from pathlib import Path
  import pytest
  from gradio.cli.commands.components._create_utils import OVERRIDES
  from gradio.cli.commands.components.create import _create
  from gradio.cli.commands.components.publish import _get_version_from_file
  from gradio.cli.commands.components.show import _show
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_version_from_wheel() without return types