code: def test_get_version(test_apps, capsys):
      class MockCtx:
          resilient_parsing = False
          color = None
  
          def exit(self):
              return
  
      ctx = MockCtx()
      get_version(ctx, None, "test")
      out, err = capsys.readouterr()
      assert f"Python {platform.python_version()}" in out
      assert f"Flask {importlib.metadata.version('flask')}" in out
      assert f"Werkzeug {importlib.metadata.version('werkzeug')}" in out
  
imports: import importlib.metadata
  import os
  import platform
  import ssl
  import sys
  import types
  from functools import partial
  from pathlib import Path
  import click
  import pytest
  from _pytest.monkeypatch import notset
  from click.testing import CliRunner
  from flask import Blueprint
  from flask import current_app
  from flask import Flask
  from flask.cli import AppGroup
  from flask.cli import find_best_app
  from flask.cli import FlaskGroup
  from flask.cli import get_version
  from flask.cli import load_dotenv
  from flask.cli import locate_app
  from flask.cli import NoAppException
  from flask.cli import prepare_import
  from flask.cli import run_command
  from flask.cli import ScriptInfo
  from flask.cli import with_appcontext
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_version(test_apps, capsys) without return types