code: def test_mask_indexes(
      basic_image_2x2, basic_image_file, basic_geometry
  ):
      """Pixels outside the geometry are masked to nodata (0)"""
  
      geometries = [basic_geometry]
  
      with rasterio.open(basic_image_file) as src:
          masked, transform = mask(src, geometries, indexes=1)
  
      assert np.ndim(masked) == 2
      assert np.array_equal(masked, basic_image_2x2)
      assert type(masked) == np.ndarray
  
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 12 for calling a global function with example usage: test_mask_indexes(basic_image_2x2, basic_image_file, basic_geometry) without return types