def is_classic_task(tup):
    """
    Takes (name, object) tuple, returns True if it's a non-Fab public callable.
    """
    name, func = tup
    try:
        is_classic = (
            callable(func) and (func not in _internals) and not
            name.startswith('_')
        )
    # Handle poorly behaved __eq__ implementations
    except (__HOLE__, TypeError):
        is_classic = False
    return is_classic
dataset/ETHPy150Open prestodb/presto-admin/prestoadmin/main.py/is_classic_task