code: def extensions():
      import mpidistutils
  
      # MPI extension module
      MPI = dict(
          name="mpi4py.MPI",
          sources=["src/mpi4py/MPI.c"],
          depends=(
              glob.glob("src/*.h")
              + glob.glob("src/lib-mpi/*.h")
              + glob.glob("src/lib-mpi/config/*.h")
              + glob.glob("src/lib-mpi/compat/*.h")
          ),
          include_dirs=["src"],
          define_macros=[],
          configure=mpidistutils.configure_mpi,
      )
      if sys.version_info[:2] > maxknow_python:
          api = "0x{:02x}{:02x}0000".format(*maxknow_python)
          MPI["define_macros"].extend(
              [
                  ("CYTHON_LIMITED_API", api),
              ]
          )
      if os.environ.get("CIBUILDWHEEL") == "1":
          MPI["define_macros"].extend(
              [
                  ("CIBUILDWHEEL", 1),
              ]
          )
      #
      return [MPI]
  
file_path: mpi4py/setup.py
imports: import os
  import sys
  import glob
label_desc: Use image node_id 3 for calling a global function with example usage: extensions() and returns: list