code: def test_float32_to_int16():
      """Get int16 array from float32 dataset"""
      with rasterio.open("tests/data/float_nan.tif") as dataset:
          data = dataset.read(out_dtype="int16")
  
      assert data.dtype == numpy.dtype("int16")
      assert (
          data == numpy.array([[[1, 1, 0], [0, 0, -2]]], dtype="int16")
      ).all()
  
imports: import numpy
  import rasterio
label_desc: Use image node_id 4 for calling a global function with example usage: test_float32_to_int16() without return types