class_docstr: Progress Bar implementation for :func:`~optuna.study.Study.optimize` on the top of `tqdm`.
  
  Args:
      is_valid:
          Whether to show progress bars in :func:`~optuna.study.Study.optimize`.
      n_trials:
          The number of trials.
      timeout:
          Stop study after the given number of second(s).
class_docstr_tok: ["Progress","Bar","implementation","for",":","func",":","`","~optuna.study.Study.optimize","`","on","the","top","of","`","tqdm","`",".","Args",":","is_valid",":","Whether","to","show","progress","bars","in",":","func",":","`","~optuna.study.Study.optimize","`",".","n_trials",":","The","number","of","trials",".","timeout",":","Stop","study","after","the","given","number","of","second","(","s",")","."]
docstr: Close progress bars.
docstr_tok: ["Close","progress","bars","."]
code: def close(self) -> None:
      """Close progress bars."""
  
      if self._is_valid:
          self._progress_bar.close()
          assert _tqdm_handler is not None
          optuna_logging._get_library_root_logger().removeHandler(
              _tqdm_handler
          )
          optuna_logging.enable_default_handler()
  
file_path: optuna/optuna/progress_bar.py
imports: from __future__ import annotations
  import logging
  from typing import Any
  from typing import TYPE_CHECKING
  import warnings
  from tqdm.auto import tqdm
  from optuna import logging
label_desc: Use image node_id 3 for calling the _ProgressBar obj's underlying member method code with example usage: obj.close() without return types