

def _fill(self, background_shape, img):
    assert (img.ndim in [3, 1])
    if (background_shape.ndim == 3):
        return_shape = (background_shape + (3,))
    else:
        return_shape = background_shape
    return (np.zeros(return_shape) + self.value)

dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/dataflow/imgaug/paste.py ConstantBackgroundFiller._fill/VarMisuse@29/34 `img`->`background_shape`