code: def _disable_logger(disable=True):
      if disable:
          logger.disabled = True
      yield
  
      if disable:
          logger.disabled = False
  
imports: import contextlib
  import logging
  import os
  import pprint
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: _disable_logger(disable) without return types