code: def test_geometry_only_schema_write(tmpdir, driver):
      schema = {
          "geometry": "Polygon",
          # No properties defined here.
      }
  
      record = Feature.from_dict(
          **{
              "geometry": {
                  "type": "Polygon",
                  "coordinates": [
                      [
                          (0.0, 0.0),
                          (1.0, 0.0),
                          (1.0, 1.0),
                          (1.0, 0.0),
                          (0.0, 0.0),
                      ]
                  ],
              }
          }
      )
  
      path = str(tmpdir.join(get_temp_filename(driver)))
  
      with fiona.open(
          path, mode="w", driver=driver, schema=schema
      ) as c:
          c.write(record)
  
      with fiona.open(path, mode="r", driver=driver) as c:
          data = [f for f in c]
          assert len(data) == 1
          assert len(data[0].properties) == 0
          assert data[0].geometry.type == record.geometry["type"]
  
imports: import os
  import tempfile
  import pytest
  import fiona
  from fiona.drvsupport import driver_mode_mingdal
  from fiona.env import GDALVersion
  from fiona.errors import SchemaError, UnsupportedGeometryTypeError, DriverSupportError
  from fiona.model import Feature
  from fiona.schema import FIELD_TYPES, normalize_field_type
  from .conftest import get_temp_filename
  from .conftest import requires_only_gdal1, requires_gdal2
label_desc: Use image node_id 15 for calling a global function with example usage: test_geometry_only_schema_write(tmpdir, driver) without return types