def METHOD_NAME(batch_size, cutoff_value, window_size, reference_power,
                              reset_interval, eps):
    pipe = nonsilent_region_pipe(
        cutoff_value, window_size, reference_power, reset_interval,
        batch_size=batch_size, num_threads=3, device_id=0, seed=42,
    )
    hop_length = 1
    ref = np.max if not reference_power else reference_power
    pipe.build()
    for _ in range(3):
        audio_batch_cpu, begin_batch_cpu, len_batch_cpu, begin_batch_gpu, len_batch_gpu = pipe.run()
        for s in range(batch_size):
            audio_cpu = test_utils.as_array(audio_batch_cpu[s])
            begin_cpu = test_utils.as_array(begin_batch_cpu[s])
            len_cpu = test_utils.as_array(len_batch_cpu[s])
            begin_gpu = test_utils.as_array(begin_batch_gpu[s])
            len_gpu = test_utils.as_array(len_batch_gpu[s])
            ref_begin, ref_len = trim_ref(
                cutoff_value, ref, window_size, hop_length, audio_cpu
            )
            np.testing.assert_allclose(ref_begin, begin_cpu, atol=eps)
            np.testing.assert_allclose(ref_begin, begin_gpu, atol=eps)
            np.testing.assert_allclose(ref_len, len_cpu, atol=eps)
            np.testing.assert_allclose(ref_len, len_gpu, atol=eps)
            np.testing.assert_allclose(begin_cpu, begin_gpu, atol=1)
            np.testing.assert_allclose(len_cpu, len_gpu, atol=10)