def METHOD_NAME(self,
              window: 'Box',
              out_shape: Optional[Tuple[int, int]] = None) -> np.ndarray:
    """Return the chip located in the window.
    Polygons falling within the window are rasterized using their
    ``class_id`` property and the background is filled with
    ``background_class_id``.
    Args:
        window (Box): Window to read.
    Returns:
        np.ndarray: [height, width, channels] numpy array
    """
    window = window.to_global_coords(self.bbox)
    chip = geoms_to_raster(
        self.df,
        window,
        background_class_id=self.background_class_id,
        all_touched=self.all_touched)
    if out_shape is not None:
        chip = self.resize(chip, out_shape)
    # Add third singleton dim since rasters must have >=1 channel.
    return np.expand_dims(chip, 2)