code: def module_extension_sources(file, use_cython, no_cuda):
      pyx, others = ensure_module_file(file)
      base = os.path.join(*pyx.split("."))
      pyx = base + (".pyx" if use_cython else ".cpp")
  
      # If CUDA SDK is not available, remove CUDA C files from extension sources
      # and use stubs defined in header files.
      if no_cuda:
          others1 = []
          for source in others:
              base, ext = os.path.splitext(source)
              if ext == ".cu":
                  continue
              others1.append(source)
          others = others1
  
      return [pyx] + others
  
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 3 for calling a global function with example usage: module_extension_sources(file, use_cython, no_cuda) and returns: unknown