code: def get_ext_modules():
      ext_modules = []
      if "--platlib-patch" in sys.argv:
          if sys.platform.startswith("linux"):
              # Manylinux2010 requires a patch for platlib
              ext_modules = [Extension("_foo", ["stub.cc"])]
          sys.argv.remove("--platlib-patch")
      return ext_modules
  
file_path: addons/setup.py
imports: import os
  from pathlib import Path
  import sys
  from datetime import datetime
  from setuptools import find_packages
  from setuptools import setup
  from setuptools.dist import Distribution
  from setuptools import Extension
label_desc: Use image node_id 3 for calling a global function with example usage: get_ext_modules() and returns: ext_modules