code: def test_crop_all_fails_bad_dir(in_paths, basic_geometry_gdf):
      """Test crop all fails if user provides a bad directory path."""
      bad_path = "Bad/Path"
      with pytest.raises(ValueError, match="The output directo"):
          es.crop_all(
              in_paths, bad_path, basic_geometry_gdf, overwrite=True
          )
  
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 5 for calling a global function with example usage: test_crop_all_fails_bad_dir(in_paths, basic_geometry_gdf) without return types