code: def is_cloud_env(detected):
      non_cloud_env = [
          "ipython-zmq",
          "ipython",
          "vscode",
      ]
      cloud_env = [
          "databricks",
          "azure",
          "azureml",
          "kaggle",
          "sagemaker",
          "binder",
          "colab",
          "azuresynapse",
      ]
      if (
          len(set(cloud_env).intersection(detected)) != 0
          and len(set(non_cloud_env).intersection(detected)) == 0
      ):
          return ENV_DETECTED.CLOUD
      elif (
          len(set(cloud_env).intersection(detected)) != 0
          and len(set(non_cloud_env).intersection(detected)) != 0
      ):
          return ENV_DETECTED.BOTH_CLOUD_AND_NON_CLOUD
      else:
          return ENV_DETECTED.NON_CLOUD
  
file_path: interpret/python/interpret-core/interpret/provider/_environment.py
imports: import os
label_desc: Use image node_id 14 for calling a global function with example usage: is_cloud_env(detected) and returns: ENV_DETECTED, ENV_DETECTED, ENV_DETECTED