code: def test_geos_capi_version():
      expected = "{}.{}.{}-CAPI-{}.{}.{}".format(
          *(shapely.geos_version + shapely.geos_capi_version)
      )
  
      # split into component parts and strip any beta / dev qualifiers
      (
          actual_geos_version,
          actual_geos_api_version,
      ) = shapely.geos_capi_version_string.split("-CAPI-")
  
      if any(c.isalpha() for c in actual_geos_version):
          if actual_geos_version[-1].isnumeric():
              actual_geos_version = actual_geos_version.rstrip(digits)
          actual_geos_version = actual_geos_version.rstrip(
              ascii_letters
          )
      actual_geos_version = actual_geos_version.rstrip(ascii_letters)
  
      assert (
          f"{actual_geos_version}-CAPI-{actual_geos_api_version}"
          == expected
      )
  
imports: import os
  import sys
  from itertools import chain
  from string import ascii_letters, digits
  from unittest import mock
  import numpy
  import pytest
  import shapely
  from shapely.decorators import multithreading_enabled, requires_geos
label_desc: Use image node_id 5 for calling a global function with example usage: test_geos_capi_version() without return types