def is_unwrapped(f):
    """If `f` was imported and then unwrapped, this function might return True.

    .. |is_unwrapped| replace:: :py:func:`is_unwrapped`"""
    try:
        g = look_up(object_name(f))
        return g != f and unwrap(g) == f

    except (AttributeError, TypeError, ImportError):
        return False
If `f` was imported and then unwrapped, this function might return True.

    .. |is_unwrapped| replace:: :py:func:`is_unwrapped`