code: def test_open_bad_mode_2():
      with pytest.raises(ValueError):
          rasterio.open("tests/data/RGB.byte.tif", mode="foo")
  
file_path: rasterio/tests/test_open.py
imports: import pytest
  import rasterio
  from pathlib import Path
label_desc: Use image node_id 3 for calling a global function with example usage: test_open_bad_mode_2() without return types