code: def _makenamedict(module="numpy"):
      module = __import__(module, globals(), locals(), [])
      thedict = {module.__name__: module.__dict__}
      dictlist = [module.__name__]
      totraverse = [module.__dict__]
      while True:
          if len(totraverse) == 0:
              break
          thisdict = totraverse.pop(0)
          for x in thisdict.keys():
              if isinstance(thisdict[x], types.ModuleType):
                  modname = thisdict[x].__name__
                  if modname not in dictlist:
                      moddict = thisdict[x].__dict__
                      dictlist.append(modname)
                      totraverse.append(moddict)
                      thedict[modname] = moddict
      return thedict, dictlist
  
imports: from __future__ import division, absolute_import, print_function
  import os
  import sys
  import types
  import re
  import warnings
  from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype
  from numpy.core.overrides import set_module
  from numpy.core import ndarray, ufunc, asarray
  import numpy
  from numpy.compat import getargspec, formatargspec
label_desc: Use image node_id 7 for calling a global function with example usage: _makenamedict(module) and returns: thedict,  dictlist