code: def detect(self):
      envs = []
      for name, check in self.checks.items():
          if check():
              envs.append(name)
      return envs
  
file_path: interpret/python/interpret-core/interpret/provider/_environment.py
imports: import os
label_desc: Use image node_id 2 for calling the EnvironmentDetector obj's underlying member method code with example usage: obj.detect() and returns: envs