code: def is_colab() -> bool:
      """
      Check whether setup is running in Google Colab.
      This is not 100% bulletproff solution to detect whether we are in Colab,
      but it should be enough unless Google change their environment variables.
      """
      return (
          ("COLAB_GPU" in os.environ)
          or ("GCE_METADATA_TIMEOUT" in os.environ)
          or ("GCS_READ_CACHE_BLOCK_SIZE_MB" 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 3 for calling a global function with example usage: is_colab() and returns: unknown