code: public Collection<INDArray> getUpdates() {
          // just drain stuff from the queue
          val list = new ArrayList<INDArray>();
          updatesQueue.drainTo(list);
          return list;
      }
docs: This method returns updates received from network
  @return