code: def env_list() -> List:
      """
      List all environments configured on this machine.
      """
      output = run_cli(
          ["env", "list", "--output", "json"], hide_output=True
      )
      return json.loads(output.strip())
  
file_path: cortex/python/client/cortex/__init__.py
imports: import json
  from typing import Optional, List
  from cortex.binary import run_cli
  from cortex.client import Client
  from cortex.exceptions import NotFound
  from cortex.telemetry import sentry_wrapper
label_desc: Use image node_id 3 for calling a global function with example usage: env_list() and returns: json