code: def test_gdal_version_error(tmpdir):
      test_geopackage = str(tmpdir.join("test.gpkg"))
      schema = {
          "properties": {"CDATA1": "str:254"},
          "geometry": "Polygon",
      }
      with fiona.Env(), fiona.open(
          test_geopackage,
          "w",
          driver="GPKG",
          schema=schema,
          layer="layer",
      ) as gpkg:
          with pytest.raises(GDALVersionError):
              gpkg.update_tags({"test_tag1": "test_value1"}, ns="test")
          with pytest.raises(GDALVersionError):
              gpkg.update_tag_item(
                  "test_tag1", "test_value1", ns="test"
              )
          with pytest.raises(GDALVersionError):
              gpkg.tags()
          with pytest.raises(GDALVersionError):
              gpkg.get_tag_item("test_tag1")
  
file_path: Fiona/tests/test_session.py
imports: import pytest
  import fiona
  from fiona.errors import GDALVersionError, UnsupportedOperation
  from .conftest import gdal_version
label_desc: Use image node_id 4 for calling a global function with example usage: test_gdal_version_error(tmpdir) without return types