code: def cmake_get_generator():
      """Returns the CMake generator from CMakeCache.txt in the current dir."""
      cmake_cache_file_path = os.path.join(
          os.getcwd(), "CMakeCache.txt"
      )
      cmake_cache_text = ""
      with open(cmake_cache_file_path, "r") as cmake_cache_file:
          cmake_cache_text = cmake_cache_file.read()
  
      if not cmake_cache_text:
          raise FileNotFoundError(
              f"{cmake_cache_file_path} missing or empty."
          )
  
      generator = ""
      for line in cmake_cache_text.splitlines():
          if line.startswith("CMAKE_GENERATOR:INTERNAL="):
              generator = line.split("=")[1]
  
      return generator
  
file_path: open-asset-importer/contrib/draco/src/draco/tools/install_test/test.py
imports: import argparse
  import multiprocessing
  import os
  import pathlib
  import shlex
  import shutil
  import subprocess
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: cmake_get_generator() and returns: generator