def METHOD_NAME(write_mock, noise, tmpdir):
    """Deprecate pf.io.write_wav"""
    filename = pathlib.Path(tmpdir, 'test_wav')
    if version.parse(pf.__version__) >= version.parse('0.5.0'):
        with pytest.raises(AttributeError):
            # remove write_wav from pyfar 0.5.0!
            pf.io.write_wav(noise, filename)