code: def test_crop_image_fails_empty_list(basic_image_tif, basic_geometry):
      """If users provide empty list as arg, crop_image fails."""
      with pytest.raises(AttributeError):
          es.crop_image(list(), basic_geometry)
      with rio.open(basic_image_tif) as src:
          with pytest.raises(ValueError):
              es.crop_image(src, list())
  
file_path: earthpy/earthpy/tests/test_crop_image.py
imports: import numpy
  import pytest
  import rasterio
  from shapely.geometry import Polygon, Point, LineString
  import earthpy.spatial
label_desc: Use image node_id 10 for calling a global function with example usage: test_crop_image_fails_empty_list(basic_image_tif, basic_geometry) without return types