code: def configure_defaults():
      
      log.debug("configure_defaults()")
  
      global initialized
      initialized = True
  
      if use_rootpy_handler:
          # Need to do it again here, since it is overridden by ROOT.
          set_error_handler(python_logging_error_handler)
  
      if os.environ.get('ROOTPY_BATCH', False) or IN_NOSETESTS:
          ROOT.gROOT.SetBatch(True)
          log.debug('ROOT is running in batch mode')
  
      ROOT.gErrorIgnoreLevel = 0
  
      this_dll = C.CDLL(None)
      try:
          EnableAutoDictionary = C.c_int.in_dll(
              this_dll, "G__EnableAutoDictionary")
      except ValueError:
          pass
      else:
          # Disable automatic dictionary generation
          EnableAutoDictionary.value = 0
  
      # TODO(pwaller): idea, `execfile("userdata/initrc.py")` here?
      #                note: that wouldn't allow the user to override the default
      #                      canvas size, for example.
  
      for init in _initializations:
          init()
docs: This function is executed immediately after ROOT's finalSetup