code: def _module_present(modname, modlist):
      if modname in modlist:
          return True
      for m in modlist:
          if hasattr(m, "__name__") and m.__name__ == modname:
              return True
      return False
  
imports: from __future__ import annotations
  from typing import Any
  import builtins
  import inspect
  import keyword
  import textwrap
  import linecache
  from sympy.external import import_module
  from sympy.utilities.exceptions import sympy_deprecation_warning
  from sympy.utilities.decorator import doctest_depends_on
  from sympy.utilities.iterables import is_sequence, iterable, NotIterable, flatten
  from sympy.utilities.misc import filldedent
label_desc: Use image node_id 3 for calling a global function with example usage: _module_present(modname, modlist) and returns: False, True, True