code: def format_params(paramlist, otherlist=None):
      """Format the parameters according to the nipy style conventions.
  
      Since the external programs do not conform to any conventions, the
      resulting docstrings are not ideal.  But at a minimum the
      Parameters section is reasonably close.
  
      Parameters
      ----------
      paramlist : list
          List of strings where each list item matches exactly one
          parameter and it's description.  These items will go into the
          'Parameters' section of the docstring.
      otherlist : list
          List of strings, similar to paramlist above.  These items will
          go into the 'Other Parameters' section of the docstring.
  
      Returns
      -------
      doc : string
          The formatted docstring.
      """
  
      hdr = "Parameters"
      delim = "----------"
      paramlist.insert(0, delim)
      paramlist.insert(0, hdr)
      params = "\n".join(paramlist)
      otherparams = []
      doc = "".join(params)
      if otherlist:
          hdr = "Others Parameters"
          delim = "-----------------"
          otherlist.insert(0, delim)
          otherlist.insert(0, hdr)
          otherlist.insert(0, "\n")
          otherparams = "\n".join(otherlist)
          doc = "".join([doc, otherparams])
      return doc
  
file_path: nipype/nipype/utils/docparse.py
imports: import subprocess
  from ..interfaces.base import CommandLine
  from .misc import is_container
label_desc: Use image node_id 3 for calling a global function with example usage: format_params(paramlist, otherlist) and returns: doc