code: def test_masks():
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          rm, gm, bm = src.read_masks()
          r, g, b = src.read(masked=False)
          assert not r[rm == 0].any()
          assert not g[gm == 0].any()
          assert not b[bm == 0].any()
  
file_path: rasterio/tests/test_band_masks.py
imports: import numpy
  import pytest
  import rasterio
  from rasterio.enums import MaskFlags
  from rasterio.errors import NodataShadowWarning
label_desc: Use image node_id 8 for calling a global function with example usage: test_masks() without return types