class_docstr: Runtime Environment Manager class to manage runtime environment.
class_docstr_tok: ["Runtime","Environment","Manager","class","to","manage","runtime","environment","."]
docstr: Checks whether conda or mamba is available to use
code: def _get_conda_exe(self):
      """Checks whether conda or mamba is available to use"""
  
      if not subprocess.Popen(["which", "mamba"]).wait():
          return "mamba"
      if not subprocess.Popen(["which", "conda"]).wait():
          return "conda"
      raise ValueError(
          "Neither conda nor mamba is installed on the image"
      )
  
imports: from __future__ import absolute_import
  import logging
  import sys
  import shlex
  import os
  import subprocess
  import time
  import dataclasses
  import json
label_desc: Use image node_id 15 for calling the RuntimeEnvironmentManager obj's underlying member method code with example usage: obj._get_conda_exe() and returns: str, str