def METHOD_NAME(subject: _MockObject) -> Any:
    """Unwrap mock if *subject* is decorated by mocked object.
    If not decorated, returns given *subject* itself.
    """
    if ismock(subject) and subject.__sphinx_decorator_args__:
        return subject.__sphinx_decorator_args__[0]
    else:
        return subject