def METHOD_NAME():
    # test the remaining errors and warnings
    fs_1 = 48000
    fs_2 = 96000
    # use power signal, which needs match_amplitude="time"
    signal = pf.signals.sine(3000, 128, full_period=True, sampling_rate=fs_1)
    signal.fft_norm = "amplitude"
    # test ValueError with wrong value for match_amplitude
    with pytest.raises(ValueError, match='match_amplitude must be "time"'):
        pf.dsp.resample(signal, fs_2, match_amplitude="freq")
    # test TypeError for input is not a pyfar.Signal
    with pytest.raises(TypeError,
                       match="Input data has to be of type pyfar.Signal"):
        pf.dsp.resample([0, 1, 0], fs_2, match_amplitude="freq")
    # test ValueError for invalid match_amplitude, must be "time" or "freq"
    with pytest.raises(ValueError,
                       match="match_amplitude is 'invalid_match_amplitude'"):
        pf.dsp.resample(signal, fs_2,
                        match_amplitude="invalid_match_amplitude")
    # test warning for target sampling rate is not divisible by 10
    with pytest.warns(UserWarning,
                      match="At least one sampling rate is not divisible"):
        pf.dsp.resample(signal, 12345, match_amplitude="time")
    # test warning for target sampling rate realisation with an error
    signal2 = pf.signals.impulse(128, 64, sampling_rate=48000)
    with pytest.warns(UserWarning,
                      match="The target sampling rate was realized with"):
        pf.dsp.resample(signal2, 420, frac_limit=100)