code: def _detect_colab():
      try:
          import google.colab  # noqa: F401
  
          return True
      except ImportError:
          return False
  
file_path: responsible-ai-toolbox/rai_core_flask/rai_core_flask/environment_detector.py
imports: import os
  from .environments import AzureNBEnvironment, CredentialedVMEnvironment, DatabricksEnvironment, LocalIPythonEnvironment, PublicVMEnvironment
label_desc: Use image node_id 3 for calling a global function with example usage: _detect_colab() and returns: True, False