code: def disable_default_handler() -> None:
      """Disable the default handler of the Optuna's root logger.
  
      Example:
  
          Stop and then resume logging to :obj:`sys.stderr`.
  
          .. testsetup::
  
              def objective(trial):
                  x = trial.suggest_float("x", -100, 100)
                  y = trial.suggest_categorical("y", [-1, 0, 1])
                  return x**2 + y
  
          .. testcode::
  
              import optuna
  
              study = optuna.create_study()
  
              # There are no logs in sys.stderr.
              optuna.logging.disable_default_handler()
              study.optimize(objective, n_trials=10)
  
              # There are logs in sys.stderr.
              optuna.logging.enable_default_handler()
              study.optimize(objective, n_trials=10)
              # [I 2020-02-23 17:00:54,314] Trial 10 finished with value: ...
              # [I 2020-02-23 17:00:54,356] Trial 11 finished with value: ...
              # ...
  
      """
  
      _configure_library_root_logger()
  
      assert _default_handler is not None
      _get_library_root_logger().removeHandler(_default_handler)
  
imports: from __future__ import annotations
  import logging
  from logging import CRITICAL
  from logging import DEBUG
  from logging import ERROR
  from logging import FATAL
  from logging import INFO
  from logging import WARN
  from logging import WARNING
  import os
  import sys
  import threading
  import colorlog
label_desc: Use image node_id 10 for calling a global function with example usage: disable_default_handler() without return types