human
I wrote the below code

    @wraps(func)
    def decorated_func(*args, **kwargs):
        '\n                                Execute    the    function    if    we    have    JPEG    support    in    Pillow.\n                                '
        try:
            from PIL import Image
        except ImportError:
            raise SkipTest('Pillow    is    not    installed    (or    not    found)')
        if (not getattr(Image.core, 'jpeg_decoder', False)):
            raise SkipTest('Pillow    cannot    open    JPEG    files')
        return func(*args, **kwargs)
    return decorated_func

What's a good function header?
assistant
#Here's a good function header.

def requires_pillow_jpeg(func):