code: def save_weights(weights_list, filename):
          
          numpy.savez(
              filename,
              **dict((("array_%d" % i), w) for (i, w) in enumerate(weights_list)))
docs: Save the model weights to the given filename using numpy's ".npz"
          format.
      
          Parameters
          ----------
          weights_list : list of array
          
          filename : string
              Should end in ".npz".