code: def test_append_bytesio_exception(data_coutwildrnp_json):
      """Append is not supported, see #1027."""
      with pytest.raises(OSError):
          fiona.open(BytesIO(data_coutwildrnp_json), "a")
  
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 20 for calling a global function with example usage: test_append_bytesio_exception(data_coutwildrnp_json) without return types