code: def test_schema_default_fields_wrong_type(tmpdir):
      """Test for SchemaError if a default field is specified with a different type"""
  
      name = str(tmpdir.join("test.gpx"))
      schema = {
          "properties": {"ele": "str", "time": "datetime"},
          "geometry": "Point",
      }
  
      with pytest.raises(SchemaError):
          with fiona.open(name, "w", driver="GPX", schema=schema) as c:
              pass
  
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 19 for calling a global function with example usage: test_schema_default_fields_wrong_type(tmpdir) without return types