code: def _check_if_kaggle() -> bool:
      """
      Returns True if inside Kaggle Notebook
      """
      root_logger = logging.getLogger()
      for handler in root_logger.root.handlers[:]:
          if hasattr(handler, "baseFilename") and (handler.baseFilename == "/tmp/kaggle.log"):  # type: ignore
              return True
      return False
  
file_path: autogluon/common/src/autogluon/common/utils/log_utils.py
imports: import logging
  from typing import Optional
label_desc: Use image node_id 4 for calling a global function with example usage: _check_if_kaggle() and returns: False, True