code: def test_show_versions(capsys):
      version_pattern = re.compile(r"(\d+).(\d+).(\d+)")
  
      os_info = f"{platform.system()} {platform.release()}"
      python_version = platform.python_version()
      python_exec = sys.executable
  
      msg = (
          "Fiona version: {fiona_version}"
          "\nGDAL version: {gdal_release_name}"
          "\nPROJ version: {proj_version}"
          "\n"
          "\nOS: {os_info}"
          "\nPython: {python_version}"
          "\nPython executable: '{python_exec}'"
          "\n"
      )
  
      if fiona.gdal_version < GDALVersion(3, 0, 1):
          proj_version = "Proj version not available"
      else:
          proj_version = os.getenv("PROJVERSION")
          proj_version = re.match(version_pattern, proj_version).group(
              0
          )
  
      gdal_version = os.getenv("GDALVERSION")
      if not gdal_version == "master":
          gdal_version = re.match(version_pattern, gdal_version).group(
              0
          )
      else:
          gdal_version = get_gdal_release_name()
  
      msg_formatted = msg.format(
          fiona_version=fiona.__version__,
          gdal_release_name=gdal_version,
          proj_version=proj_version,
          os_info=os_info,
          python_version=python_version,
          python_exec=python_exec,
      )
  
      fiona.show_versions()
      captured = capsys.readouterr()
  
      assert captured.out.strip() == msg_formatted.strip()
  
file_path: Fiona/tests/test_version.py
imports: import fiona
  import platform
  import re
  import os
  import sys
  from tests.conftest import travis_only
  from fiona._env import GDALVersion, get_gdal_release_name
label_desc: Use image node_id 3 for calling a global function with example usage: test_show_versions(capsys) without return types