code: def format_heading(level, text):
      """Create a heading of <level> [1, 2 or 3 supported]."""
      underlining = [
          "=",
          "-",
          "~",
      ][
          level - 1
      ] * len(text)
      return "%s\n%s\n\n" % (text, underlining)
  
file_path: holoviews/doc/generate_modules.py
imports: import os
  import optparse
label_desc: Use image node_id 3 for calling a global function with example usage: format_heading(level, text) and returns: unknown