code: public static List<Writable> toRecord(INDArray array) {
          List<Writable> writables = new ArrayList<>();
          writables.add(new NDArrayWritable(array));
          return writables;
      }
docs: Convert an ndarray to a record
  @param array the array to convert
  @return the record