code: def get_ext_modules():
      ext_modules = []
      # only windows visual studio 2013+ support compile c/cuda extensions
      # If you force to compile extension on Windows and ensure appropriate visual studio
      # is intalled, you can try to use these ext_modules.
      force_compile = False
      if platform.system() != "Windows" or force_compile:
          ext_modules = [
              make_cython_ext(
                  name="soft_nms_cpu",
                  module="detector.nms",
                  sources=["src/soft_nms_cpu.pyx"],
              ),
              make_cuda_ext(
                  name="nms_cpu",
                  module="detector.nms",
                  sources=["src/nms_cpu.cpp"],
              ),
              make_cuda_ext(
                  name="nms_cuda",
                  module="detector.nms",
                  sources=["src/nms_cuda.cpp", "src/nms_kernel.cu"],
              ),
              make_cuda_ext(
                  name="roi_align_cuda",
                  module="alphapose.utils.roi_align",
                  sources=[
                      "src/roi_align_cuda.cpp",
                      "src/roi_align_kernel.cu",
                  ],
              ),
              make_cuda_ext(
                  name="deform_conv_cuda",
                  module="alphapose.models.layers.dcn",
                  sources=[
                      "src/deform_conv_cuda.cpp",
                      "src/deform_conv_cuda_kernel.cu",
                  ],
              ),
              make_cuda_ext(
                  name="deform_pool_cuda",
                  module="alphapose.models.layers.dcn",
                  sources=[
                      "src/deform_pool_cuda.cpp",
                      "src/deform_pool_cuda_kernel.cu",
                  ],
              ),
          ]
      return ext_modules
  
file_path: norfair/demos/alphapose/setup.py
imports: import os
  import platform
  import subprocess
  import time
  import numpy
  from Cython.Build import cythonize
  from setuptools import Extension, find_packages, setup
  from torch.utils.cpp_extension import BuildExtension, CUDAExtension
label_desc: Use image node_id 8 for calling a global function with example usage: get_ext_modules() and returns: ext_modules