docs: public static void assertNoWorkspacesOpen(String msg, boolean allowScopedOut) throws ND4JWorkspaceException {
          if (Nd4j.getWorkspaceManager().anyWorkspaceActiveForCurrentThread()) {
  
              MemoryWorkspace currWs = Nd4j.getMemoryManager().getCurrentWorkspace();
              if(allowScopedOut && (currWs == null || currWs instanceof DummyWorkspace))
                  return; //Open WS but we've scoped out
  
              List<MemoryWorkspace> l = Nd4j.getWorkspaceManager().getAllWorkspacesForCurrentThread();
              List<String> workspaces = new ArrayList<>(l.size());
              for (MemoryWorkspace ws : l) {
                  if(ws.isScopeActive()) {
                      workspaces.add(ws.getId());
                  }
              }
              throw new ND4JWorkspaceException(msg + " - Open/active workspaces: " + workspaces);
          }
      }