class_docstr: Runtime Environment Manager class to manage runtime environment.
class_docstr_tok: ["Runtime","Environment","Manager","class","to","manage","runtime","environment","."]
docstr: Validate the python version
  
  Validates if the python version where remote function runs
  matches the one used on client side.
code: def _validate_python_version(
      self, client_python_version: str, conda_env: str = None
  ):
      """Validate the python version
  
      Validates if the python version where remote function runs
      matches the one used on client side.
      """
      if conda_env:
          job_python_version = self._python_version_in_conda_env(
              conda_env
          )
      else:
          job_python_version = self._current_python_version()
      if client_python_version.strip() != job_python_version.strip():
          raise RuntimeEnvironmentError(
              f"Python version found in the container is '{job_python_version}' which "
              f"does not match python version '{client_python_version}' on the local client. "
              f"Please make sure that the python version used in the training container "
              f"is same as the local python version."
          )
  
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 18 for calling the RuntimeEnvironmentManager obj's underlying member method code with example usage: obj._validate_python_version(client_python_version, conda_env) without return types