code: def test_object_update_warning():
      """Warn about update"""
      obj = Object()
      with pytest.warns(FionaDeprecationWarning, match="immutable"):
          obj.update(g=1)
      assert "g" in obj
      assert obj["g"] == 1
  
imports: import pytest
  from fiona.errors import FionaDeprecationWarning
  from fiona.model import _Geometry, Feature, Geometry, Object, ObjectEncoder, Properties, decode_object
label_desc: Use image node_id 4 for calling a global function with example usage: test_object_update_warning() without return types