code: @Override
    public OutputStream getCheckpointOutputStream(long imageTxId) throws IOException {
      String fileName = NNStorage.getCheckpointImageFileName(imageTxId);
      return new FileOutputStream(new File(sd.getCurrentDir(), fileName));
    }
docs: Get file output stream