code: def test_boundless_masked_special():
      """Confirm resolution of special case in issue #1471"""
      with rasterio.open("tests/data/green.tif") as src:
          masked = src.read(
              2,
              boundless=True,
              masked=True,
              window=Window(-1, -1, 66, 66),
          )
      assert not masked[:, 0].any()
      assert not masked[:, -1].any()
      assert not masked[0, :].any()
      assert not masked[-1, :].any()
  
imports: from affine import Affine
  import shutil
  from hypothesis import example, given
  import hypothesis.strategies
  import numpy
  from numpy.testing import assert_almost_equal
  import pytest
  import rasterio
  from rasterio.io import MemoryFile
  from rasterio.windows import Window
label_desc: Use image node_id 8 for calling a global function with example usage: test_boundless_masked_special() without return types