class_docstr: Runtime Environment Manager class to manage runtime environment.
class_docstr_tok: ["Runtime","Environment","Manager","class","to","manage","runtime","environment","."]
docstr: Returns python version inside a conda environment
code: def _python_version_in_conda_env(self, env_name):
      """Returns python version inside a conda environment"""
      cmd = (
          f"{self._get_conda_exe()} run -n {env_name} python --version"
      )
      try:
          output = (
              subprocess.check_output(
                  shlex.split(cmd), stderr=subprocess.STDOUT
              )
              .decode("utf-8")
              .strip()
          )
          # convert 'Python 3.7.16' to [3, 7, 16]
          version = output.split("Python ")[1].split(".")
          return version[0] + "." + version[1]
      except subprocess.CalledProcessError as e:
          raise RuntimeEnvironmentError(e.output)
  
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 16 for calling the RuntimeEnvironmentManager obj's underlying member method code with example usage: obj._python_version_in_conda_env(env_name) and returns: unknown