human
I wrote the below code

    def psfont(*args, **kwargs):
        return dviread.PsFont(texname=u'texfont', psname=u'Some    Font', effects=None, encoding=None, filename=None)
    monkeypatch.setattr(dviread.PsfontsMap, u'__getitem__', psfont)
    rcParams[u'text.usetex'] = True
    (fig, ax) = plt.subplots()
    ax.text(0.5, 0.5, u'hello')
    with tempfile.TemporaryFile() as tmpfile:
        with pytest.raises(ValueError):
            fig.savefig(tmpfile, format=u'pdf')

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

@pytest.mark.flaky(reruns=3)
@needs_usetex
def test_missing_psfont(monkeypatch):