code: def format_inheritance_diagram(module, package=None):
      """Create the inheritance_diagram directive and add the options."""
      directive = ".. inheritance-diagram:: %s\n" % makename(
          package, module
      )
      return directive
  
file_path: holoviews/doc/generate_modules.py
imports: import os
  import optparse
label_desc: Use image node_id 5 for calling a global function with example usage: format_inheritance_diagram(module, package) and returns: directive