code: def test_datetime_field_type_marked_not_supported_is_not_supported(
      tmpdir, driver, field_type, monkeypatch
  ):
      """Test if a date/datetime/time field type marked as not not supported is really not supported
  
      Warning: Success of this test does not necessary mean that a field is not supported. E.g. errors can occour due to
      special schema requirements of drivers. This test only covers the standard case.
  
      """
  
      if driver == "BNA" and GDALVersion.runtime() < GDALVersion(2, 0):
          pytest.skip("BNA driver segfaults with gdal 1.11")
  
      monkeypatch.delitem(
          fiona.drvsupport._driver_field_type_unsupported[field_type],
          driver,
      )
  
      schema = get_schema(driver, field_type)
      path = str(tmpdir.join(get_temp_filename(driver)))
      values_in, values_out = zip(
          *generate_testdata(field_type, driver)
      )
      records = get_records(driver, values_in)
  
      is_good = True
      try:
          with fiona.open(path, "w", driver=driver, schema=schema) as c:
              c.writerecords(records)
  
          with fiona.open(path, "r") as c:
              if not get_schema_field(driver, c.schema) == field_type:
                  is_good = False
              items = [get_field(driver, f) for f in c]
              for val_in, val_out in zip(items, values_out):
                  if not val_in == val_out:
                      is_good = False
      except:
          is_good = False
      assert not is_good
  
imports: import fiona
  from fiona._env import get_gdal_version_num, calc_gdal_version_num
  import pytest
  from fiona.errors import DriverSupportError
  from fiona.rfc3339 import parse_time, parse_datetime
  from .conftest import get_temp_filename
  from fiona.env import GDALVersion
  from fiona.model import Feature
  import datetime
  from fiona.drvsupport import supported_drivers, driver_mode_mingdal, _driver_converts_field_type_silently_to_str, _driver_supports_field, _driver_converts_to_str, _driver_supports_timezones, _driver_supports_milliseconds, _driver_supports_mode
  import pytz
  from pytz import timezone
label_desc: Use image node_id 18 for calling a global function with example usage: test_datetime_field_type_marked_not_supported_is_not_supported(tmpdir, driver, field_type, monkeypatch) without return types