code: def select_compilers_to_install(
      include_compilers: Union[List[str], str],
      framework_list: List[str],
  ) -> List[str]:
      compiler_list = []
      supported_compilers = list(
          set(
              [item for sublist in MODULES.values() for item in sublist]
          )
      )
      if (
          isinstance(include_compilers, str)
          and include_compilers == "all"
      ):
          compiler_list = list(
              set(
                  [
                      item
                      for (fr, compilers) in MODULES.items()
                      for item in compilers
                      if fr in framework_list
                  ]
              )
          )
      else:
          for compiler in include_compilers:
              if compiler not in supported_compilers:
                  logger.warning(f"Compiler {compiler} not supported")
              else:
                  compiler_supported = False
                  for framework in framework_list:
                      if compiler in MODULES[framework]:
                          compiler_list.append(compiler)
                          compiler_supported = True
                          break
                  if not compiler_supported:
                      logger.warning(
                          f"Compiler {compiler} not supported for selected "
                          f"frameworks"
                      )
  
      compiler_list = list(set(compiler_list))
      compiler_list.sort()
  
      return compiler_list
  
file_path: nebuly/optimization/nebullvm/nebullvm/installers/auto_installer.py
imports: import argparse
  from typing import List, Union
  from loguru import logger
  from nebullvm.config import ONNX_MODULES, TENSORFLOW_MODULES, TORCH_MODULES, HUGGING_FACE_MODULES, DIFFUSERS_MODULES
  from nebullvm.installers.installers import ONNXInstaller, PytorchInstaller, TensorflowInstaller, HuggingFaceInstaller, DiffusersInstaller
label_desc: Use image node_id 2 for calling a global function with example usage: select_compilers_to_install(include_compilers, framework_list) and returns: compiler_list