code: def _detect_azureml():
      # AzureML seems to have multiple ways to render a notebook or lab.
      # If any of the following succeed, consider it within AzureML
      nbvm_file_path = "/mnt/azmnt/.nbvm"
      azml_notebook_vm_check = os.path.exists(
          nbvm_file_path
      ) and os.path.isfile(nbvm_file_path)
      azml_notebook_check = "AZUREML_NB_PATH" in os.environ
      azml_lab_check = (
          "LOGNAME" in os.environ
          and os.environ["LOGNAME"] == "azureuser"
      )
      return (
          azml_notebook_vm_check
          or azml_notebook_check
          or azml_lab_check
      )
  
file_path: interpret/python/interpret-core/interpret/provider/_environment.py
imports: import os
label_desc: Use image node_id 8 for calling a global function with example usage: _detect_azureml() and returns: unknown