def METHOD_NAME(self) -> Dict[str, torch.Tensor]:
    # language=rst
    """
    Get the spike data from all layers in the pipeline's network.
    :return: A dictionary containing all spike monitors from the network.
    """
    return {
        l: self.network.monitors[f"{l}_spikes"].get("s")
        for l in self.network.layers
    }