from typing import Callable


def orig(func: Callable) -> Callable:
    """Return the function wrapped by one or more decorators.

    Args:
        func: step function

    Returns:
        Undecorated step function for testing purposes.

    """
    f = func
    while hasattr(f, "__wrapped__"):
        f = f.__wrapped__  # type:ignore

    return f