code: def _reflow_param_docstring(docstring, has_first_line=True, width=75):
      """Reflow text to a nice width for terminals.
  
      WARNING: does not handle gracefully things like .. versionadded::
      """
      maxsplit = docstring.count("\n") - 1 if has_first_line else -1
      merged = " ".join(
          line.strip()
          for line in docstring.rsplit("\n", maxsplit=maxsplit)
      )
      reflowed = "\n    ".join(
          re.findall(rf".{{1,{width}}}(?:\s+|$)", merged)
      )
      if has_first_line:
          reflowed = reflowed.replace("\n    \n", "\n", 1)
      return reflowed
  
imports: import inspect
  import os
  import os.path
  import re
  import sys
  import webbrowser
  from copy import deepcopy
  from decorator import FunctionMaker
  from ..defaults import HEAD_SIZE_DEFAULT
  from ._bunch import BunchConst
label_desc: Use image node_id 1 for calling a global function with example usage: _reflow_param_docstring(docstring, has_first_line, width) and returns: reflowed