code: def test_update_tag_item(layer, namespace, 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:
          assert gpkg.get_tag_item("test_tag1", ns=namespace) is None
          gpkg.update_tag_item("test_tag1", "test_value1", ns=namespace)
  
      with fiona.Env(), fiona.open(
          test_geopackage, layer=layer
      ) as gpkg:
          if namespace is not None:
              assert gpkg.get_tag_item("test_tag1") is None
          assert (
              gpkg.get_tag_item("test_tag1", ns=namespace)
              == "test_value1"
          )
          with pytest.raises(UnsupportedOperation):
              gpkg.update_tag_item(
                  "test_tag1", "test_value1", ns=namespace
              )
  
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 3 for calling a global function with example usage: test_update_tag_item(layer, namespace, tmpdir) without return types