code: def test_block_windows_filtered_all(path_rgb_byte_tif):
      """Get all block windows using filter"""
      with rasterio.open(path_rgb_byte_tif) as src:
          w, s, e, n = src.bounds
          focus_window = src.window(w, s, e, n)
          filter_func = partial(windows.intersect, focus_window)
          itr = (
              (ij, win)
              for ij, win in src.block_windows()
              if filter_func(win)
          )
          assert len(list(itr)) == 240
  
imports: from functools import partial
  import os.path
  import shutil
  import subprocess
  import tempfile
  import unittest
  import numpy
  import pytest
  import rasterio
  from rasterio import windows
  from rasterio.errors import RasterBlockError
  from rasterio.profiles import default_gtiff_profile
label_desc: Use image node_id 3 for calling a global function with example usage: test_block_windows_filtered_all(path_rgb_byte_tif) without return types