code: def test_write_invalid_numeric_layer(path_coutwildrnp_shp, tmpdir):
      with pytest.raises(ValueError):
          fiona.open(
              str(tmpdir.join("test-no-iter.shp")), mode="w", layer=0
          )
  
file_path: Fiona/tests/test_layer.py
imports: import pytest
  import fiona
  from .test_collection import TestReading
label_desc: Use image node_id 3 for calling a global function with example usage: test_write_invalid_numeric_layer(path_coutwildrnp_shp, tmpdir) without return types