code: def test_sampling_no_nodata_masked_beyond_bounds(data):
      """Masked sampling beyond bounds yields an entirely masked array."""
      filename = str(data.join("RGB.byte.tif"))
  
      with rasterio.open(filename, "r+") as src:
          src.nodata = None
  
      with rasterio.open(filename) as src:
          data = next(src.sample([(0.0, 0.0)], masked=True))
          assert numpy.ma.is_masked(data)
          assert all(data.mask == True)
  
file_path: rasterio/tests/test_sampling.py
imports: import numpy
  import rasterio
label_desc: Use image node_id 4 for calling a global function with example usage: test_sampling_no_nodata_masked_beyond_bounds(data) without return types