def _func_or_print(result, func):
    if func is not None:
        func(result)
    else:
        print(result)
Private function to either print or call a function on result
dataset/ETHPy150Open christabor/MoAL/MOAL/helpers/display.py/_func_or_print