code: def test_raster_geometrymask_invert(
      basic_image_2x2, basic_image_file, basic_geometry
  ):
      """Pixels inside the geometry are True in the mask"""
  
      geometries = [basic_geometry]
  
      with rasterio.open(basic_image_file) as src:
          geometrymask, transform, window = raster_geometry_mask(
              src, geometries, invert=True
          )
  
      assert np.array_equal(geometrymask, basic_image_2x2)
      assert transform == Affine.identity()
  
imports: import numpy
  import pytest
  from affine import Affine
  import rasterio
  from rasterio.mask import raster_geometry_mask, mask
  from .conftest import MockGeoInterface
label_desc: Use image node_id 3 for calling a global function with example usage: test_raster_geometrymask_invert(basic_image_2x2, basic_image_file, basic_geometry) without return types