code: def test_invalid_layer(path_coutwildrnp_shp):
      with pytest.raises(ValueError):
          fiona.open(path_coutwildrnp_shp, layer="foo")
  
file_path: Fiona/tests/test_layer.py
imports: import pytest
  import fiona
  from .test_collection import TestReading
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_layer(path_coutwildrnp_shp) without return types