code: def get_ext_modules(use_cython: bool, ctx: Context):
      # We need to call get_config_vars to initialize _config_vars in distutils
      # see #1849
      sysconfig.get_config_vars()
      compiler = ccompiler.new_compiler()
      sysconfig.customize_compiler(compiler)
  
      extensions = make_extensions(ctx, compiler, use_cython)
  
      return extensions
  
imports: import copy
  from distutils import ccompiler
  from distutils import sysconfig
  import os
  import shutil
  import sys
  import setuptools
  import cupy_builder.install_build
  from cupy_builder._context import Context
  from cupy_builder.install_build import PLATFORM_LINUX
  from cupy_builder.install_build import PLATFORM_WIN32
label_desc: Use image node_id 12 for calling a global function with example usage: get_ext_modules(use_cython, ctx) and returns: extensions