code: def test_unknown(filename_json):
      """Reading and writing layers with "Unknown" (i.e. any) geometry type"""
      # write a layer with a mixture of geometry types
      schema = {"geometry": "Unknown", "properties": properties}
      with fiona.open(
          filename_json, "w", driver="GeoJSON", schema=schema
      ) as collection:
          write_point(collection)
          write_linestring(collection)
          write_polygon(collection)
          write_geometrycollection(collection)
          write_null(collection)
  
          with pytest.raises(GeometryTypeValidationError):
              write_invalid(collection)
  
      # copy the features to a new layer, reusing the layers metadata
      with fiona.open(filename_json, "r", driver="GeoJSON") as src:
          filename_dst = filename_json.replace(".json", "_v2.json")
          assert src.schema["geometry"] == "Unknown"
          with fiona.open(filename_dst, "w", **src.meta) as dst:
              dst.writerecords(src)
  
imports: import fiona
  import pytest
  from fiona.errors import GeometryTypeValidationError, UnsupportedGeometryTypeError
  from fiona.model import Feature
label_desc: Use image node_id 13 for calling a global function with example usage: test_unknown(filename_json) without return types