code: def write_polygon(collection):
      feature = Feature.from_dict(
          **{"geometry": POLYGON, "properties": PROPERTIES}
      )
      collection.write(feature)
  
imports: import fiona
  import pytest
  from fiona.errors import GeometryTypeValidationError, UnsupportedGeometryTypeError
  from fiona.model import Feature
label_desc: Use image node_id 5 for calling a global function with example usage: write_polygon(collection) without return types