def METHOD_NAME():
    nest.resolution = 0.1
    nest.SetDefaults("correlation_detector", {"delta_tau": 1.0, "tau_max": 5.0})
    spikes_times = [[1.0, 2.0, 6.0], [2.0, 4.0]]
    detector = prepare_correlation_detector(spikes_times)
    n_events = detector.get("n_events")
    has_zero_entries = np.any(n_events == 0)
    if not has_zero_entries:
        detector.set(n_events=[0, 0])
        assert np.all(detector.get("n_events") == 0)
        assert np.all(detector.get("histogram") == 0)