code: def is_kaggle() -> bool:
      """
      Check whether setup is running in Kaggle environment.
      This is not 100% bulletproff solution to detect whether we are in Kaggle Notebooks,
      but it should be enough unless Kaggle change their environment variables.
      """
      return (
          ("KAGGLE_CONTAINER_NAME" in os.environ)
          or ("KAGGLE_URL_BASE" in os.environ)
          or ("KAGGLE_DOCKER_IMAGE" in os.environ)
      )
  
file_path: pytorch-toolbelt/setup.py
imports: import ast
  import io
  import re
  import os
  import sys
  from setuptools import find_packages, setup
  from distutils.version import LooseVersion
label_desc: Use image node_id 2 for calling a global function with example usage: is_kaggle() and returns: unknown