code: def test_mask_filled(
      basic_image, basic_image_2x2, basic_image_file, basic_geometry
  ):
      """Should be returned as numpy.ma.MaskedArray if filled is False"""
  
      geometries = [basic_geometry]
  
      with rasterio.open(basic_image_file) as src:
          masked, transform = mask(src, geometries, filled=False)
  
      image = np.ma.MaskedArray(basic_image, mask=basic_image_2x2 == 0)
  
      assert type(masked) == np.ma.MaskedArray
      assert np.array_equal(masked[0].mask, image.mask)
      assert np.array_equal(masked[0], image)
  
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 23 for calling a global function with example usage: test_mask_filled(basic_image, basic_image_2x2, basic_image_file, basic_geometry) without return types