code: def get_description_from_spec(obj, name, spec):
      """
      Generates a description based on the input or output spec.
      """
      if not spec.desc:
          spec.desc = "No description provided."
      spec_info = spec.full_info(obj, name, None)
  
      boutiques_description = (
          spec_info.capitalize() + ". " + spec.desc.capitalize()
      ).replace("\n", "")
  
      if not boutiques_description.endswith("."):
          boutiques_description += "."
  
      return boutiques_description
  
file_path: nipype/nipype/utils/nipype2boutiques.py
imports: import os
  import sys
  import simplejson
  from ..scripts.instance import import_module
label_desc: Use image node_id 6 for calling a global function with example usage: get_description_from_spec(obj, name, spec) and returns: boutiques_description