code: def test_to_wkt__invalid_version():
      with pytest.raises(CRSError):
          crs.CRS.from_string("EPSG:4326").to_wkt(version="invalid")
  
file_path: Fiona/tests/test_crs.py
imports: import pytest
  from .conftest import requires_gdal33
  from fiona import crs
  from fiona.env import Env
  from fiona.errors import CRSError, FionaDeprecationWarning
label_desc: Use image node_id 12 for calling a global function with example usage: test_to_wkt__invalid_version() without return types