code: public static INDArray toTensor(List<List<List<Writable>>> records) {
         return TimeSeriesWritableUtils.convertWritablesSequence(records).getFirst();
      }
docs: Convert a set of records in to a matrix
  @param records the records ot convert
  @return the matrix for the records