def avg_pool(self, block_size):
arr_0to1_reduced = ia.avg_pool(self.arr_0to1, block_size, cval=<NUM_LIT:0.0>)<EOL>return HeatmapsOnImage.from_0to1(arr_0to1_reduced, shape=self.shape, min_value=self.min_value,<EOL>max_value=self.max_value)<EOL>
Resize the heatmap(s) array using average pooling of a given block/kernel size.

Parameters
----------
block_size : int or tuple of int
    Size of each block of values to pool, aka kernel size. See :func:`imgaug.pool` for details.

Returns
-------
imgaug.HeatmapsOnImage
    Heatmaps after average pooling.