code: def get_python_root_dir(py_ver: Tuple[int, int]) -> str:
      # returns python_root_dir relative to CMAKE_FIND_ROOT_PATH
  
      if sys.platform == "win32":
          # pyenv installs x.y.z versions but we've created x.y aliases for convinience
          return os.path.join(
              ".pyenv",
              "pyenv-win",
              "versions",
              f"{py_ver[0]}.{py_ver[1]}",
          )
      if sys.platform == "darwin":
          # pyenv installs x.y.z versions but we've created x.y aliases for convinience
          return os.path.join(
              ".pyenv", "versions", f"{py_ver[0]}.{py_ver[1]}"
          )
      if sys.platform == "linux":
          py_ver_str = f"{py_ver[0]}{py_ver[1]}"
          # manylinux2014 image conventions
          return os.path.join(
              "python",
              f"cp{py_ver_str}-cp{py_ver_str}m"
              if py_ver <= (3, 7)
              else f"cp{py_ver_str}-cp{py_ver_str}",
          )
  
imports: import argparse
  import distutils
  import hashlib
  import logging
  import os
  import subprocess
  import sys
  import tarfile
  from typing import List, Tuple
label_desc: Use image node_id 4 for calling a global function with example usage: get_python_root_dir(py_ver) and returns: os, os, os