code: def check_mathlib(config_cmd):
      # Testing the C math library
      mathlibs = []
      mathlibs_choices = [[], ["m"], ["cpml"]]
      mathlib = os.environ.get("MATHLIB")
      if mathlib:
          mathlibs_choices.insert(0, mathlib.split(","))
      for libs in mathlibs_choices:
          if config_cmd.check_func(
              "log",
              libraries=libs,
              call_args="0",
              decl="double log(double);",
              call=True,
          ):
              mathlibs = libs
              break
      else:
          raise RuntimeError(
              "math library missing; rerun setup.py after setting the "
              "MATHLIB env variable"
          )
      return mathlibs
  
imports: import os
  import sys
  import sysconfig
  import pickle
  import copy
  import warnings
  import textwrap
  import glob
  from os.path import join
  from numpy.distutils import log
  from numpy.distutils.msvccompiler import lib_opts_if_msvc
  from distutils.dep_util import newer
  from sysconfig import get_config_var
  from numpy.compat import npy_load_module
  from setup_common import *
label_desc: Use image node_id 11 for calling a global function with example usage: check_mathlib(config_cmd) and returns: mathlibs