def task(*args, **kwargs):
    invoked = bool(not args or kwargs)
    task_class = kwargs.pop("task_class", tasks.WrappedCallableTask)
    if not invoked:
        func, args = args[0], ()

    def wrapper(func):
        return task_class(func, *args, **kwargs)

    return wrapper if invoked else wrapper(func)
:param ensure_upload: If True, will bypass checksum of resources directory
dataset/ETHPy150Open fabric/fabric/fabric/decorators.py/task--crossover with--dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/app_builder.py/upload_resources