code: def write(self, module):
          
  
          modname = module.__name__
  
          # Based on code in generate_autosummary_docs in https://git.io/fxpJS
          ns = {}
          ns['members'] = dir(module)
          ns['functions'] = list(map(lambda x: x.__name__,
                                     get_module_functions(module)))
          ns['classes'] = list(map(lambda x: x.__name__,
                                   get_module_classes(module)))
          ns['exceptions'] = list(map(lambda x: x.__name__,
                                      get_module_exceptions(module)))
          ns['fullname'] = modname
          ns['module'] = modname
          ns['objname'] = modname
          ns['name'] = modname.split('.')[-1]
          ns['objtype'] = 'module'
          ns['underline'] = len(modname) * '='
          rndr = self.template.render(**ns)
  
          rstfile = os.path.join(self.outpath, modname + '.rst')
          with open(rstfile, 'w') as f:
              f.write(rndr)
docs: Write the RST source document for generating the docs for
          a specified module.
  
          Parameters
          ----------
          module : module object
            Module for which member list is to be generated