def is_task_module(a):
    # return (type(a) is types.ModuleType and
    #        any(map(is_task_object, vars(a).values())))
    if isinstance(a, types.ModuleType) and a not in _seen:
        # Flag module as seen
        _seen.add(a)
        # Signal that we need to check it out
        return True
Determine if the provided value is a task module
dataset/ETHPy150Open prestodb/presto-admin/prestoadmin/main.py/is_task_module