def sample(self, model_output: np.ndarray, num_samples: int) -> np.ndarray:
        """
        Samples a prediction from the likelihood distribution and the predicted parameters.
        """
        return sample_from_quantiles(
            vals=model_output,
            quantiles=np.array(self.quantiles),
            num_samples=num_samples,
        )

        Samples a prediction from the likelihood distribution and the predicted parameters.
        
darts/utils/likelihood_models/statsforecast.py