code: def test_crop_image_with_geometry(basic_image_tif, basic_geometry):
      """Cropping with a geometry works with all_touched=True."""
      with rio.open(basic_image_tif) as src:
          img, meta = es.crop_image(
              src, [basic_geometry], all_touched=True
          )
      assert np.sum(img) == 9
  
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 3 for calling a global function with example usage: test_crop_image_with_geometry(basic_image_tif, basic_geometry) without return types