def METHOD_NAME(*args, **kwargs):
    import ibis
    # Similar to the pandas backend, it is possible to call this function
    # without having initialized the configuration option. This can happen
    # when tests are distributed across multiple processes, for example.
    ibis.dask  # noqa: B018
    if not options.dask.enable_trace:
        return func(*args, **kwargs)
    else:
        start = datetime.now()
        _log_trace(func)
        res = func(*args, **kwargs)
        _log_trace(func, start)
        return res