code: def load_weights(filename):
          
          loaded = numpy.load(filename)
          weights = [
              loaded["array_%d" % i]
              for i in range(len(loaded.keys()))
          ]
          loaded.close()
          return weights
docs: Restore model weights from the given filename, which should have been
          created with `save_weights`.
      
          Parameters
          ----------
          filename : string
              Should end in ".npz".
  
          Returns
          ----------
          list of array