code: def get_cmake_dir():
      plat_name = sysconfig.get_platform()
      python_version = sysconfig.get_python_version()
      dir_name = f"cmake.{plat_name}-{sys.implementation.name}-{python_version}"
      cmake_dir = Path("../python") / "build" / dir_name
      return cmake_dir
  
file_path: triton/docs/conf.py
imports: import os
  import shutil
  import sys
  import sysconfig
  from pathlib import Path
  import sphinx_rtd_theme
  from sphinx_gallery.sorting import FileNameSortKey
label_desc: Use image node_id 2 for calling a global function with example usage: get_cmake_dir() and returns: cmake_dir