docs: public static void writeMemoryCrashDump(@NonNull Model net, @NonNull Throwable e){
          if(!crashDumpsEnabled){
              return;
          }
  
          long now = System.currentTimeMillis();
          long tid = Thread.currentThread().getId();      //Also add thread ID to avoid name clashes (parallel wrapper, etc)
          String threadName = Thread.currentThread().getName();
          crashDumpRootDirectory.mkdirs();
          File f = new File(crashDumpRootDirectory, "dl4j-memory-crash-dump-" + now + "_" + tid + ".txt");
          StringBuilder sb = new StringBuilder();
  
          SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
          sb.append("Deeplearning4j OOM Exception Encountered for ").append(net.getClass().getSimpleName()).append("\n")
                  .append(f("Timestamp: ", sdf.format(now)))
                  .append(f("Thread ID", tid))
                  .append(f("Thread Name", threadName))
                  .append("\n\n");
  
          sb.append("Stack Trace:\n")
                  .append(ExceptionUtils.getStackTrace(e));
  
          try{
              sb.append("\n\n");
              sb.append(generateMemoryStatus(net, -1, (InputType[])null));
          } catch (Throwable t){
              sb.append("<Error generating network memory status information section>")
                      .append(ExceptionUtils.getStackTrace(t));
          }
  
          String toWrite = sb.toString();
          try{
              FileUtils.writeStringToFile(f, toWrite);
          } catch (IOException e2){
              log.error("Error writing memory crash dump information to disk: {}", f.getAbsolutePath(), e2);
          }
  
          log.error(">>> Out of Memory Exception Detected. Memory crash dump written to: {}", f.getAbsolutePath());
          log.warn("Memory crash dump reporting can be disabled with CrashUtil.crashDumpsEnabled(false) or using system " +
                  "property -D" + DL4JSystemProperties.CRASH_DUMP_ENABLED_PROPERTY + "=false");
          log.warn("Memory crash dump reporting output location can be set with CrashUtil.crashDumpOutputDirectory(File) or using system " +
                  "property -D" + DL4JSystemProperties.CRASH_DUMP_OUTPUT_DIRECTORY_PROPERTY + "=<path>");
      }