code: def delete_logging_handlers(logger: logging.Logger):
      """Delete all logging handlers that are not stream-handlers.
  
      Parameters
      ----------
      logger : logging.Logger
          The logger.
  
      """
      if len(logger.handlers) > 1:
          logger.handlers = [
              h
              for h in logger.handlers
              if type(h) == logging.StreamHandler
          ]
      assert (
          len(logger.handlers) == 1
      ), "Multiple logging StreamHandlers present!!"
  
file_path: tsflex/tsflex/utils/logging.py
imports: import logging
  import warnings
  from pathlib import Path
  from typing import Union
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: delete_logging_handlers(logger) without return types