class_docstr: Logger class
class_docstr_tok: ["Logger","class"]
docstr: Set the verbose flag
docstr_tok: ["Set","the","verbose","flag"]
code: def verbose(self, verbose: bool):
      """Set the verbose flag"""
      self._verbose = verbose
      self._logger.handlers = []
      if verbose:
          self._logger.addHandler(logging.StreamHandler(sys.stdout))
      else:
          # remove the StreamHandler if it exists
          for handler in self._logger.handlers:
              if isinstance(handler, logging.StreamHandler):
                  self._logger.removeHandler(handler)
  
file_path: pandas-ai/pandasai/helpers/logger.py
imports: import inspect
  import time
  import sys
  from typing import List
  import logging
  from .path import find_closest
  from pydantic import BaseModel
label_desc: Use image node_id 7 for calling the Logger obj's underlying member method code with example usage: obj.verbose(verbose) without return types