code: def _remove_close_handlers(logger):
      for h in list(logger.handlers):
          # only remove our handlers (get along nicely with nose)
          if isinstance(
              h, (logging.FileHandler, logging.StreamHandler)
          ):
              if isinstance(h, logging.FileHandler):
                  h.close()
              logger.removeHandler(h)
  
imports: import contextlib
  import importlib
  import inspect
  import logging
  import os.path
  import re
  import sys
  import warnings
  from io import StringIO
  from typing import Any, Callable, TypeVar
  from decorator import FunctionMaker
  from .docs import fill_doc
label_desc: Use image node_id 5 for calling a global function with example usage: _remove_close_handlers(logger) without return types