code: def format_directive(module, package=None):
      # type: (unicode, unicode) -> unicode
      
      directive = '.. automodule:: %s\n' % makename(package, module)
      for option in OPTIONS:
          directive += '    :%s:\n' % option
      return directive
docs: Create the automodule directive and add the options.