def METHOD_NAME(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)