def METHOD_NAME(mocker, out_fodf):
    def _mock(*args, **kwargs):
        img = nib.load(out_fodf)
        return img.get_fdata().astype(np.float32)
    script = 'scil_execute_angle_aware_bilateral_filtering'
    filtering_fn = "angle_aware_bilateral_filtering"
    return mocker.patch("scripts.{}.{}".format(script, filtering_fn),
                        side_effect=_mock, create=True)