How mnist_params saved as a result of training of spiking neural network can be used to extract weights and biases mif files separately for each layer

please provide me the solution of my problem asap