code: def test_write_bool_subtype(tmpdir):
      path = tmpdir.join("test_write_bool_subtype.geojson")
  
      schema = {
          "geometry": "Point",
          "properties": {
              "bool": "bool",
              "not_bool": "int",
              "float": "float",
          },
      }
  
      feature = Feature.from_dict(
          **{
              "geometry": None,
              "properties": {
                  "bool": True,
                  "not_bool": 1,
                  "float": 42.5,
              },
          }
      )
  
      with fiona.open(
          str(path), "w", driver="GeoJSON", schema=schema
      ) as dst:
          dst.write(feature)
  
      with open(str(path)) as f:
          data = f.read()
  
      if fiona.gdal_version.major >= 2:
          assert """"bool": true""" in data
      else:
          assert """"bool": 1""" in data
      assert """"not_bool": 1""" in data
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_write_bool_subtype(tmpdir) without return types