def maybe_apply()

in augmentation/utils.py [0:0]


def maybe_apply(pred, arg, func):
    return func(arc) if pred(arg) else arg