code: def test_json(tmpdir):
      """Write a simple GeoJSON file"""
      path = str(tmpdir.join("foo.json"))
      with fiona.open(
          path,
          "w",
          driver="GeoJSON",
          schema={
              "geometry": "Unknown",
              "properties": [("title", "str")],
          },
      ) as c:
          c.writerecords(
              [
                  Feature.from_dict(
                      **{
                          "geometry": {
                              "type": "Point",
                              "coordinates": [0.0, 0.0],
                          },
                          "properties": {"title": "One"},
                      }
                  )
              ]
          )
          c.writerecords(
              [
                  Feature.from_dict(
                      **{
                          "geometry": {
                              "type": "MultiPoint",
                              "coordinates": [[0.0, 0.0]],
                          },
                          "properties": {"title": "Two"},
                      }
                  )
              ]
          )
      with fiona.open(path) as c:
          assert c.schema["geometry"] == "Unknown"
          assert len(c) == 2
  
file_path: Fiona/tests/test_geojson.py
imports: import json
  import pytest
  import fiona
  from fiona.collection import supported_drivers
  from fiona.errors import FionaValueError, DriverError, SchemaError, CRSError
  from fiona.model import Feature
label_desc: Use image node_id 2 for calling a global function with example usage: test_json(tmpdir) without return types