code: def test_write_gpkg(tmpdir):
      path = str(tmpdir.join("foo.gpkg"))
  
      with fiona.open(
          path,
          "w",
          driver="GPKG",
          schema=example_schema,
          crs=example_crs,
      ) as dst:
          dst.writerecords(example_features)
  
      with fiona.open(path) as src:
          assert src.schema["geometry"] == "Point"
          assert len(src) == 3
  
file_path: Fiona/tests/test_geopackage.py
imports: import os
  import pytest
  import fiona
  from fiona.model import Feature
  from .conftest import requires_gpkg
label_desc: Use image node_id 2 for calling a global function with example usage: test_write_gpkg(tmpdir) without return types