code: def test_sampling_ndarray():
      """sample and sample_gen can take ndarrays of coords."""
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          data = next(src.sample(numpy.array([[220650.0, 2719200.0]])))
          assert list(data) == [18, 25, 14]
  
file_path: rasterio/tests/test_sampling.py
imports: import numpy
  import rasterio
label_desc: Use image node_id 11 for calling a global function with example usage: test_sampling_ndarray() without return types