code: def test_crop_image_with_geojson_touch_false(
      basic_image_tif, basic_geometry
  ):
      """Cropping with GeoJSON works when all_touched=False."""
      geojson = basic_geometry.__geo_interface__
      with rio.open(basic_image_tif) as src:
          img, meta = es.crop_image(src, [geojson], all_touched=False)
      assert np.sum(img) == 4
  
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 4 for calling a global function with example usage: test_crop_image_with_geojson_touch_false(basic_image_tif, basic_geometry) without return types