docs: def _format_help_dicts(help_dicts, display_defaults=False):
      """
      Format the output of _generate_help_dicts into a str
      """
      help_strs = []
      for help_dict in help_dicts:
          help_str = "%s (%s" % (
              help_dict["var_name"],
              "Required" if help_dict["required"] else "Optional",
          )
          if help_dict.get("default") and display_defaults:
              help_str += ", Default=%s)" % help_dict["default"]
          else:
              help_str += ")"
          if help_dict.get("help_str"):
              help_str += ": %s" % help_dict["help_str"]
          help_strs.append(help_str)
  
      return "\n".join(help_strs)