docs: public static INDArray reshapeTimeSeriesMaskToVector(INDArray timeSeriesMask) {
          if (timeSeriesMask.rank() != 2)
              throw new IllegalArgumentException("Cannot reshape mask: rank is not 2");
  
          if (timeSeriesMask.ordering() != 'f')
              timeSeriesMask = timeSeriesMask.dup('f');
  
          return timeSeriesMask.reshape('f', timeSeriesMask.length(), 1);
      }