code: def _get_mod_ns(name, fullname, includeprivate):
      
      ns = {  # template variables
          'name': name, 'fullname': fullname, 'members': [], 'functions': [],
          'classes': [], 'exceptions': [], 'subpackages': [], 'submodules': [],
          'doc': None}
      p = 0
      if includeprivate:
          p = 1
      mod = importlib.import_module(fullname)
      ns['members'] = _get_members(mod)[p]
      ns['functions'] = _get_members(mod, typ='function')[p]
      ns['classes'] = _get_members(mod, typ='class')[p]
      ns['exceptions'] = _get_members(mod, typ='exception')[p]
      ns['data'] = _get_members(mod, typ='data')[p]
      ns['doc'] = mod.__doc__
      return ns
docs: Return the template context of module identified by `fullname` as a
      dict