code: def format_title(text):
      text = text.title()
      line = "-" * len(text)
      return "{0}\n{1}\n\n".format(text, line)
  
file_path: dipy/doc/tools/docgen_cmd.py
imports: import os
  from os.path import join
  from subprocess import Popen, PIPE, CalledProcessError
  import sys
  import importlib
  import inspect
  from packaging.version import Version
label_desc: Use image node_id 4 for calling a global function with example usage: format_title(text) and returns: str