      global _CONFIG  # pylint: disable=global-statement
      if _CONFIG is not None:
          return None
      logger.debug("Initializing config: (root: %s, cli_opts: %s, "
                   "statusbar: %s, session: %s)", root, cli_opts, statusbar, session)
      _CONFIG = Config(root, cli_opts, statusbar, session)
      return _CONFIG
  
  
  def get_config():
      """ Get the Master GUI configuration.
 
</s> remove     session: :class:`lib.gui.stats.Session`
        The current training Session
 </s> add  </s> remove     def __init__(self, root, cli_opts, statusbar, session):
        logger.debug("Initializing %s: (root %s, cli_opts: %s, statusbar: %s, session: %s)",
                     self.__class__.__name__, root, cli_opts, statusbar, session)
 </s> add     def __init__(self, root, cli_opts, statusbar):
        logger.debug("Initializing %s: (root %s, cli_opts: %s, statusbar: %s)",
                     self.__class__.__name__, root, cli_opts, statusbar) </s> remove     session: :class:`lib.gui.stats.Session`
        The current training Session
 </s> add  </s> remove def initialize_config(root, cli_opts, statusbar, session):
 </s> add def initialize_config(root, cli_opts, statusbar): </s> remove         session = Session()
        config = initialize_config(self, cliopts, statusbar, session)
 </s> add         config = initialize_config(self, cliopts, statusbar)
                 "statusbar: %s)", root, cli_opts, statusbar)
    _CONFIG = Config(root, cli_opts, statusbar)
      global _CONFIG  # pylint: disable=global-statement
      if _CONFIG is not None:
          return None
      logger.debug("Initializing config: (root: %s, cli_opts: %s, "
                 "statusbar: %s)", root, cli_opts, statusbar)
    _CONFIG = Config(root, cli_opts, statusbar)
                 "statusbar: %s)", root, cli_opts, statusbar)
    _CONFIG = Config(root, cli_opts, statusbar)
      return _CONFIG
  
  
  def get_config():
      """ Get the Master GUI configuration.
keep keep keep keep replace replace keep keep keep keep keep
 GUI - Stats optimization (#1067)

* Faster stat loading + caching

* Compress data in cache

* Optimize some calculations

* Vectorize smoothing

* stats.Calculations optimized

* Load latest training data from live iterator

* Add options to training graph 
lib/gui/utils.py