def METHOD_NAME():
    wvf_extractor = WaveformExtractor.load(cache_folder / "wvf_extractor")
    recording = wvf_extractor.recording
    templates = wvf_extractor.get_all_templates()
    templates[:, 0, :] = 0
    templates[:, -1, :] = 0
    hybrid_units_recording = create_hybrid_units_recording(
        recording, templates, nbefore=wvf_extractor.nbefore, injected_sorting_folder=cache_folder / "injected0"
    )
    assert hybrid_units_recording.get_traces(end_frame=600, segment_index=0).shape == (600, 4)
    assert hybrid_units_recording.get_traces(start_frame=100, end_frame=600, segment_index=1).shape == (500, 4)
    assert hybrid_units_recording.get_traces(start_frame=recording.get_num_frames(0) - 200, segment_index=0).shape == (
        200,
        4,
    )
    # Check dumpability
    saved_loaded = load_extractor(hybrid_units_recording.to_dict())
    check_recordings_equal(hybrid_units_recording, saved_loaded, return_scaled=False)
    saved_1job = hybrid_units_recording.save(folder=cache_folder / "units_1job")
    saved_2job = hybrid_units_recording.save(folder=cache_folder / "units_2job", n_jobs=2, chunk_duration="1s")
    check_recordings_equal(hybrid_units_recording, saved_1job, return_scaled=False)
    check_recordings_equal(hybrid_units_recording, saved_2job, return_scaled=False)