def METHOD_NAME(tmp_path):
    """Should raise an error if the sample rate is not the same"""
    tmp_filename = tmp_path / "test.wav"
    signal = np.ones((10, 2)) * 0.5
    sample_rate = 16000.0
    write_signal(
        tmp_filename,
        signal,
        sample_rate=int(sample_rate),  # <-- Sample rate needs to be cast to int
        floating_point=False,
        strict=True,
    )
    # Correct number of channels - will read OK
    read_signal(tmp_filename, sample_rate=16000, n_channels=2)
    # Incorrect number of channels - will raise an error
    with pytest.raises(ValueError):
        read_signal(tmp_filename, sample_rate=16000, n_channels=1)