def METHOD_NAME(hydra_cfg, tmp_path):
    """Test run_HL_processing function."""
    np.random.seed(0)
    hydra_cfg.train_path.exp_folder = str(tmp_path / "exps/train")
    # Test the MSBG hearing loss stage
    # Use just 2 seconds of the signal to speed up the test
    with patch.object(
        recipes.cpc1.baseline.run,
        "read_signal",
        side_effect=truncated_read_signal,
    ) as mock_read_signal:
        run_HL_processing(hydra_cfg, hydra_cfg.train_path)
        assert mock_read_signal.call_count == 2
    expected_signals = [
        ("S08510_L0239_E001_HL-mixoutput.wav", 2799.13671875),
        ("S08510_L0239_E001_HL-output.wav", 734.46435546875),
        ("S08510_L0239_E001_HLddf-output.wav", 0.04365737363696098),
        ("S08510_flat0dB_HL-output.wav", 1.3086366653442383),
    ]
    for signal, expected_value in expected_signals:
        _fs, signal = read(tmp_path / "exps/train/eval_signals" / signal)
        assert np.sum(np.abs(signal)) == pytest.approx(
            expected_value, rel=pytest.rel_tolerance, abs=pytest.abs_tolerance
        )