code: def check_ieee_macros(config):
      priv = []
      pub = []
  
      macros = []
  
      def _add_decl(f):
          priv.append(fname2def("decl_%s" % f))
          pub.append("NPY_%s" % fname2def("decl_%s" % f))
  
      # XXX: hack to circumvent cpp pollution from python: python put its
      # config.h in the public namespace, so we have a clash for the common
      # functions we test. We remove every function tested by python's
      # autoconf, hoping their own test are correct
      _macros = ["isnan", "isinf", "signbit", "isfinite"]
      for f in _macros:
          py_symbol = fname2def("decl_%s" % f)
          already_declared = config.check_decl(
              py_symbol, headers=["Python.h", "math.h"]
          )
          if already_declared:
              if config.check_macro_true(
                  py_symbol, headers=["Python.h", "math.h"]
              ):
                  pub.append("NPY_%s" % fname2def("decl_%s" % f))
          else:
              macros.append(f)
      # Normally, isnan and isinf are macro (C99), but some platforms only have
      # func, or both func and macro version. Check for macro only, and define
      # replacement ones if not found.
      # Note: including Python.h is necessary because it modifies some math.h
      # definitions
      for f in macros:
          st = config.check_decl(f, headers=["Python.h", "math.h"])
          if st:
              _add_decl(f)
  
      return priv, pub
  
imports: from __future__ import division, print_function
  import os
  import sys
  import pickle
  import copy
  import warnings
  import platform
  from os.path import join
  from numpy.distutils import log
  from distutils.dep_util import newer
  from distutils.sysconfig import get_config_var
  from numpy._build_utils.apple_accelerate import uses_accelerate_framework, get_sgemv_fix
  from numpy.compat import npy_load_module
  from setup_common import *
label_desc: Use image node_id 7 for calling a global function with example usage: check_ieee_macros(config) and returns: priv,  pub