code: def test_sampling_beyond_bounds_nan():
      with rasterio.open("tests/data/float_nan.tif") as src:
          data = next(src.sample([(-10.0, 0.0)]))
          assert numpy.isnan(data)
  
file_path: rasterio/tests/test_sampling.py
imports: import numpy
  import rasterio
label_desc: Use image node_id 7 for calling a global function with example usage: test_sampling_beyond_bounds_nan() without return types