code: def test_masked_none():
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          r, g, b = src.read(masked=True)
          rm, gm, bm = src.read_masks()
          assert (r.mask == ~rm.astype("bool")).all()
          assert (g.mask == ~gm.astype("bool")).all()
          assert (b.mask == ~bm.astype("bool")).all()
  
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 10 for calling a global function with example usage: test_masked_none() without return types