code: def format_help(cls):
      """
      Prints help text of a Nipype interface
  
      >>> from nipype.interfaces.afni import GCOR
      >>> GCOR.help()  # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
      Wraps the executable command ``@compute_gcor``.
      <BLANKLINE>
      Computes the average correlation between every voxel
      and ever other voxel, over any give mask.
      <BLANKLINE>
      <BLANKLINE>
      For complete details, ...
  
      """
      from ...utils.misc import trim
  
      docstring = []
      cmd = getattr(cls, "_cmd", None)
      if cmd:
          docstring += [
              "Wraps the executable command ``%s``." % cmd,
              "",
          ]
  
      if cls.__doc__:
          docstring += trim(cls.__doc__).split("\n") + [""]
  
      allhelp = "\n".join(
          docstring
          + _inputs_help(cls)
          + [""]
          + _outputs_help(cls)
          + [""]
          + _refs_help(cls)
      )
      return allhelp.expandtabs(8)
  
imports: import os
  from contextlib import AbstractContextManager
  from copy import deepcopy
  from textwrap import wrap
  import re
  from datetime import datetime
  from dateutil.parser import parse
  import platform
  from ...None import logging, config
  from ...utils.misc import is_container, rgetcwd
  from ...utils.filemanip import md5, hash_infile
label_desc: Use image node_id 2 for calling a global function with example usage: format_help(cls) and returns: allhelp