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