code: def has_module(module):
      """
      Return True if module exists, otherwise run skip().
  
      module should be a string.
      """
      # To give a string of the module name to skip(), this function takes a
      # string.  So we don't waste time running import_module() more than once,
      # just map the three modules tested here in this dict.
      modnames = {"numpy": numpy, "Cython": Cython, "f2py": f2py}
  
      if modnames[module]:
          if module == "f2py" and not f2pyworks:
              skip("Couldn't run f2py.")
          return True
      skip("Couldn't import %s." % module)
  
imports: import sympy
  import tempfile
  import os
  from sympy.core.mod import Mod
  from sympy.core.relational import Eq
  from sympy.core.symbol import symbols
  from sympy.external import import_module
  from sympy.tensor import IndexedBase, Idx
  from sympy.utilities.autowrap import autowrap, ufuncify, CodeWrapError
  from sympy.testing.pytest import skip
label_desc: Use image node_id 1 for calling a global function with example usage: has_module(module) and returns: True