code: def test_mask_nodata(
      basic_image_2x2, basic_image_file, basic_geometry
  ):
      """All pixels outside geometry should be masked out as 3"""
  
      nodata = 3
      geometries = [basic_geometry]
  
      basic_image_2x2[basic_image_2x2 == 0] = nodata
  
      with rasterio.open(basic_image_file) as src:
          masked, transform = mask(src, geometries, nodata=nodata)
  
      assert np.array_equal(masked[0], basic_image_2x2)
  
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 14 for calling a global function with example usage: test_mask_nodata(basic_image_2x2, basic_image_file, basic_geometry) without return types