def METHOD_NAME(METHOD_NAME=True, exclude=None, **kwargs):
    '''
    Decorator to trace line execution. Usage:
    ```python
    @trace()
    def method(...):
        ...
    ```
    When `method()` is called, every line of execution is traced.
    '''
    if exclude is None:
        ignoredirs = (sys.prefix,)
    elif isinstance(exclude, str):
        ignoredirs = (sys.prefix, os.path.abspath(exclude))
    elif isinstance(exclude, (list, tuple)):
        ignoredirs = [sys.prefix] + [os.path.abspath(path) for path in exclude]
    tracer = Trace(METHOD_NAME=METHOD_NAME, ignoredirs=ignoredirs, **kwargs)
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            return tracer.runfunc(func, *args, **kwargs)
        return wrapper
    return decorator