docstr: used to simulate MacOS "black mode" on other platforms
  intended for debug only, as it manage only the QPlainTextEdit
docstr_tok: ["used","to","simulate","MacOS","``","black","mode","''","on","other","platforms","intended","for","debug","only",",","as","it","manage","only","the","QPlainTextEdit"]
code: def simulate_black_mode(self):
      """
      used to simulate MacOS "black mode" on other platforms
      intended for debug only, as it manage only the QPlainTextEdit
      """
      # first, a dark background
      c = QtGui.QColor("#171717")
      p = self.ui.codeView.palette()
      p.setColor(
          QtGui.QPalette.ColorGroup.Active,
          QtGui.QPalette.ColorRole.Base,
          c,
      )
      p.setColor(
          QtGui.QPalette.ColorGroup.Inactive,
          QtGui.QPalette.ColorRole.Base,
          c,
      )
      self.ui.codeView.setPalette(p)
      # then, a light font
      f = QtGui.QTextCharFormat()
      f.setForeground(QtGui.QColor("white"))
      self.ui.codeView.setCurrentCharFormat(f)
      # finally, override application automatic detection
      app = QtWidgets.QApplication.instance()
      app.setProperty("darkMode", True)
  
imports: import keyword
  import os
  import pkgutil
  import re
  import subprocess
  import sys
  from argparse import Namespace
  from collections import OrderedDict
  from functools import lru_cache
  import pyqtgraph
  from pyqtgraph.Qt import QT_LIB, QtCore, QtGui, QtWidgets
  import exampleLoaderTemplate_generic
  import utils
label_desc: Use image node_id 9 for calling the ExampleLoader obj's underlying member method code with example usage: obj.simulate_black_mode() without return types