code: def test_sampling_beyond_bounds_masked():
      """Masked sampling beyond bounds yields a masked array with last element being False."""
      with rasterio.open("tests/data/RGBA.byte.tif") as src:
          data = next(src.sample([(0.0, 0.0)], masked=True))
          assert list(data.mask) == [True, True, True, False]
  
file_path: rasterio/tests/test_sampling.py
imports: import numpy
  import rasterio
label_desc: Use image node_id 6 for calling a global function with example usage: test_sampling_beyond_bounds_masked() without return types