code: def get_weights(self):
          
          self._check_sess()
          return {
              k: v.eval(session=self.sess)
              for k, v in self.variables.items()
          }
docs: Returns a dictionary containing the weights of the network.
  
          Returns:
              Dictionary mapping variable names to their weights.