code: def cmake_get_available_generators():
      """Returns list of generators available in current CMake executable."""
      result = run_process_and_capture_output(f"{CMAKE} --help")
  
      if result[0] != 0:
          raise Exception(
              f"cmake --help failed, exit code: {result[0]}\n{result[1]}"
          )
  
      help_text = result[1].splitlines()
      generators_start_index = help_text.index("Generators") + 3
      generators_text = help_text[generators_start_index::]
  
      generators = []
      for gen in generators_text:
          gen = gen.split("=")[0].strip().replace("* ", "")
  
          if gen and gen[0] != "=":
              generators.append(gen)
  
      return generators
  
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 1 for calling a global function with example usage: cmake_get_available_generators() and returns: generators