code: def sphinx_format_header(text: str, char: str) -> str:
      """
      Example output:
  
          *******
           WebUI
          *******
      """
      return "\n".join(
          [
              char * (len(text) + 2),
              f" {text}",
              char * (len(text) + 2),
          ]
      )
  
file_path: determined/tools/scripts/gen-attributions.py
imports: import email
  import os
  import sys
  from typing import IO, List, Optional
label_desc: Use image node_id 3 for calling a global function with example usage: sphinx_format_header(text, char) and returns: str