code: def make_cpp_ext(use_cython=False):
      extra_args = []
      system = platform.system()
  
      if system == "Linux":
          extra_args.append("-std=c++11")
      elif system == "Darwin":
          extra_args.extend(["-stdlib=libc++", "-std=c++11"])
      #    extra_args.extend(['-g', '-O0'])  # uncomment if optimization limiting crash info
      for module, source in cpp_extensions.items():
          if use_cython:
              source = source.replace(".cpp", ".pyx")
          yield Extension(
              module,
              sources=[source],
              language="c++",
              extra_compile_args=extra_args,
              extra_link_args=extra_args,
          )
  
file_path: gensim/setup.py
imports: import itertools
  import os
  import platform
  import shutil
  import sys
  from collections import OrderedDict
  from setuptools import Extension, find_packages, setup, distutils
  from setuptools.command.build_ext import build_ext
label_desc: Use image node_id 3 for calling a global function with example usage: make_cpp_ext(use_cython) without return types