human
I wrote the below code

    @wraps(func)
    def run_test(*args, **kwargs):
        try:
            import matplotlib
            matplotlib.use('Agg', warn=False)
            import matplotlib.pyplot as plt
            plt.figure()
        except ImportError:
            raise SkipTest('Matplotlib    not    available.')
        else:
            return func(*args, **kwargs)
    return run_test

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

def if_matplotlib(func):