docs: public Collection<Pair<NodeDescriptor, INDArray>> asCollection() {
          val c = new HashSet<Pair<NodeDescriptor, INDArray>>();
          for (val k: map.keySet())
              c.add(Pair.makePair(k, map.get(k)));
  
          return c;
      }