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(get_base_dir()) / "python" / "build" / dir_name
      cmake_dir.mkdir(parents=True, exist_ok=True)
      return cmake_dir
  
imports: import os
  import platform
  import re
  import shutil
  import subprocess
  import sys
  import sysconfig
  import tarfile
  import tempfile
  import urllib.request
  from distutils.command.clean import clean
  from pathlib import Path
  from typing import NamedTuple
  from setuptools import Extension, setup
  from setuptools.command.build_ext import build_ext
  from setuptools.command.build_py import build_py
  from dataclasses import dataclass
label_desc: Use image node_id 11 for calling a global function with example usage: get_cmake_dir() and returns: cmake_dir