code: def test_mapinfo_raises():
      """Reported to be a crasher in #937"""
      driver = "MapInfo File"
      schema = {"geometry": "Point", "properties": {"position": "str"}}
  
      with BytesIO() as fout:
          with pytest.raises(OSError):
              with fiona.open(
                  fout, "w", driver=driver, schema=schema
              ) as collection:
                  collection.write(
                      {
                          "type": "Feature",
                          "geometry": {
                              "type": "Point",
                              "coordinates": (0, 0),
                          },
                          "properties": {"position": "x"},
                      }
                  )
  
imports: import os
  from io import BytesIO
  import pytest
  import fiona
  from fiona import supported_drivers
  from fiona.drvsupport import _driver_supports_mode
  from fiona.errors import DriverError
  from fiona.io import MemoryFile, ZipMemoryFile
  from fiona.meta import supports_vsi
  from .conftest import requires_gdal2, requires_gpkg
label_desc: Use image node_id 21 for calling a global function with example usage: test_mapinfo_raises() without return types