code: def _compute_intersection(w1, w2):
      """Compute intersection of window 1 and window 2"""
      col_off = max(w1.col_off, w2.col_off)
      row_off = max(w1.row_off, w2.row_off)
      width = (
          min(w1.col_off + w1.width, w2.col_off + w2.width) - col_off
      )
      height = (
          min(w1.row_off + w1.height, w2.row_off + w2.height) - row_off
      )
      return col_off, row_off, width, height
  
imports: import collections
  from collections.abc import Iterable
  import functools
  import math
  import warnings
  from affine import Affine
  import attr
  import numpy
  from rasterio.errors import WindowError, RasterioDeprecationWarning
  from rasterio.transform import rowcol, guard_transform
label_desc: Use image node_id 8 for calling a global function with example usage: _compute_intersection(w1, w2) and returns: col_off,  row_off,  width,  height