code: def test_python_version_in_conda(mock_conda_exe):
      with patch("subprocess.check_output") as check_output:
          check_output.return_value = b"Python 3.10.7"
  
          job_conda_env = "conda_env"
          version = (
              RuntimeEnvironmentManager()._python_version_in_conda_env(
                  job_conda_env
              )
          )
          call_args = check_output.call_args[0][0]
          assert call_args is not None
  
          expected_cmd = f"{mock_conda_exe.return_value} run -n {job_conda_env} python --version"
          assert call_args == shlex.split(expected_cmd)
          assert version == "3.10"
  
imports: from __future__ import absolute_import
  import subprocess
  import pytest
  from mock import patch, Mock
  import sys
  import shlex
  import os
  from mock.mock import MagicMock
  from sagemaker.remote_function.runtime_environment.runtime_environment_manager import RuntimeEnvironmentManager, RuntimeEnvironmentError
label_desc: Use image node_id 16 for calling a global function with example usage: test_python_version_in_conda(mock_conda_exe) without return types