def METHOD_NAME(*args, **kwargs):
    # Unfortunately, this function can be called before the `ibis.pandas`
    # attribute has ever been accessed, which means the trace configuration
    # option might never get registered and will raise an error. Accessing
    # the pandas attribute here forces the option initialization
    import ibis
    ibis.pandas  # noqa: B018
    if not options.pandas.enable_trace:
        return func(*args, **kwargs)
    else:
        start = datetime.now()
        _log_trace(func)
        res = func(*args, **kwargs)
        _log_trace(func, start)
        return res