code: def _split_out_parameters(initdoc):
      """Split documentation into (header, parameters, suffix)
  
      Parameters
      ----------
      initdoc : string
        The documentation string
      """
  
      # TODO: bind it to the only word in the line
      p_res = __parameters_str_re.search(initdoc)
      if p_res is None:
          return initdoc, "", ""
      else:
          # Could have been accomplished also via re.match
  
          # where new line is after :Parameters:
          # parameters header index
          ph_i = p_res.start()
  
          # parameters body index
          pb_i = p_res.end()
  
          # end of parameters
          try:
              pe_i = initdoc.index("\n\n", pb_i)
          except ValueError:
              pe_i = len(initdoc)
  
          result = (
              initdoc[:ph_i].rstrip("\n "),
              initdoc[pb_i:pe_i],
              initdoc[pe_i:],
          )
  
      # XXX a bit of duplication of effort since handle_docstring might
      # do splitting internally
      return (
          handle_docstring(result[0], polite=False).strip("\n"),
          textwrap.dedent(result[1]).strip("\n"),
          textwrap.dedent(result[2]).strip("\n"),
      )
  
file_path: datalad/datalad/dochelpers.py
imports: import logging
  import re
  import textwrap
  import os
  import sys
  import traceback
  from datalad.support.exceptions import CapturedException
label_desc: Use image node_id 6 for calling a global function with example usage: _split_out_parameters(initdoc) and returns: handle_docstring,  textwrap,  textwrap, initdoc,  str,  str