code: def _find_latest_installable_python_version(version_prefix):
      """
      Find the latest installable python version that matches the given version prefix
      from the output of `pyenv install --list`. For example, `version_prefix("3.8")` returns '3.8.x'
      where 'x' represents the latest micro version in 3.8.
      """
      lines = _exec_cmd(
          [_get_pyenv_bin_path(), "install", "--list"],
          capture_output=True,
          shell=not _IS_UNIX,
      ).stdout.splitlines()
      semantic_versions = filter(
          _SEMANTIC_VERSION_REGEX.match, map(str.strip, lines)
      )
      matched = [
          v for v in semantic_versions if v.startswith(version_prefix)
      ]
      if not matched:
          raise MlflowException(
              f"Could not find python version that matches {version_prefix}"
          )
      return sorted(matched, key=Version)[-1]
  
imports: import logging
  import os
  import re
  import shutil
  import sys
  import tempfile
  import uuid
  from pathlib import Path
  from packaging.version import Version
  import mlflow
  from mlflow.environment_variables import MLFLOW_ENV_ROOT
  from mlflow.exceptions import MlflowException
  from mlflow.models.model import MLMODEL_FILE_NAME, Model
  from mlflow.utils.conda import _PIP_CACHE_DIR
  from mlflow.utils.databricks_utils import is_in_databricks_runtime
  from mlflow.utils.environment import _CONDA_ENV_FILE_NAME, _PYTHON_ENV_FILE_NAME, _REQUIREMENTS_FILE_NAME, _get_mlflow_env_name, _get_pip_install_mlflow, _PythonEnv
  from mlflow.utils.file_utils import remove_on_error
  from mlflow.utils.process import _IS_UNIX, _exec_cmd, _join_commands
  from mlflow.utils.requirements_utils import _parse_requirements
label_desc: Use image node_id 7 for calling a global function with example usage: _find_latest_installable_python_version(version_prefix) and returns: sorted