code: def test_crop_image_with_gdf(basic_image_tif, basic_geometry_gdf):
      """Cropping with a GeoDataFrame works when all_touched=True.
  
      Cropping basic_image_tif file with the basic geometry fixture returns
      all of the cells that have the value 1 in the basic_image_tif fixture
  
      These fixtures are described in conftest.py
      """
      with rio.open(basic_image_tif) as src:
          img, meta = es.crop_image(
              src, basic_geometry_gdf, 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 1 for calling a global function with example usage: test_crop_image_with_gdf(basic_image_tif, basic_geometry_gdf) without return types