def METHOD_NAME(
    self,
    num_spikes_range: Tuple[int, int],
    intensity_range: Tuple[float, float],
) -> Tuple[np.ndarray, float]:
    ns_min, ns_max = num_spikes_range
    num_spikes_param = int(torch.randint(ns_min, ns_max + 1, (1,)).item())
    intensity_param = self.sample_uniform(*intensity_range)
    spikes_positions = torch.rand(num_spikes_param, 3).numpy()
    return spikes_positions, intensity_param