code: def test_crop_all_fails_overwrite(
      in_paths, output_dir, basic_geometry_gdf
  ):
      """Test that crop all fails when overwrite isn't set to True if files
      already exist."""
      with pytest.raises(ValueError, match="The file "):
          es.crop_all(in_paths, output_dir, basic_geometry_gdf)
  
file_path: earthpy/earthpy/tests/test_crop_all.py
imports: import os
  import pytest
  from shapely.geometry import Polygon
  import earthpy.spatial
label_desc: Use image node_id 4 for calling a global function with example usage: test_crop_all_fails_overwrite(in_paths, output_dir, basic_geometry_gdf) without return types