code: def get_conda_env_list() -> list:
      """
      Get conda env list.
      """
      conda_path = get_conda_bin_executable("conda")
      try:
          exec_cmd([conda_path, "--help"], throw_on_error=False)
      except EnvironmentError:
          raise ValueError(
              f"Could not find Conda executable at {conda_path}."
          )
      _, stdout, _ = exec_cmd([conda_path, "env", "list", "--json"])
      envs = json.loads(stdout)["envs"]
      return envs
  
file_path: ray/python/ray/_private/runtime_env/conda_utils.py
imports: import logging
  import os
  import shutil
  import subprocess
  import hashlib
  import json
  from typing import Optional, List, Union, Tuple
label_desc: Use image node_id 6 for calling a global function with example usage: get_conda_env_list() and returns: envs