def _validate_function(self, name, val):
        try:
            assert hasattr(val, "__call__")
        except AssertionError:
            raise Exception("Invalid value for %s!  Must be a function." % name)
dataset/ETHPy150Open kxxoling/PTable/prettytable/prettytable.py/PrettyTable._validate_function/original