code: def format_directive(module, package=None):
      """Create the automodule directive and add the options."""
      directive = ".. automodule:: %s\n" % makename(package, module)
      for option in OPTIONS:
          directive += "    :%s:\n" % option
      return directive
  
file_path: holoviews/doc/generate_modules.py
imports: import os
  import optparse
label_desc: Use image node_id 4 for calling a global function with example usage: format_directive(module, package) and returns: directive