code: def test_write_no_driver__issue_1203(tmpdir):
      name = str(tmpdir.join("test.invalid"))
      with pytest.raises(ValueError), rasterio.open(
          name, "w", height=1, width=1, count=1, dtype="uint8"
      ):
          print("TEST FAILED IF THIS IS REACHED.")
  
imports: import logging
  import re
  from pathlib import Path
  import subprocess
  import affine
  import numpy
  import pytest
  from .conftest import requires_gdal35, gdal_version
  import rasterio
  from rasterio.drivers import blacklist
  from rasterio.enums import MaskFlags, Resampling
  from rasterio.env import Env, GDALVersion
  from rasterio.errors import RasterioIOError
label_desc: Use image node_id 24 for calling a global function with example usage: test_write_no_driver__issue_1203(tmpdir) without return types