code: def _ensure_cr(text):
      """Remove trailing whitespace and add carriage return.
  
      Ensures that `text` always ends with a carriage return
      """
      return text.rstrip() + "\n"
  
file_path: dipy/dipy/utils/deprecator.py
imports: import functools
  import warnings
  import re
  from inspect import signature
  from dipy import __version__
  from packaging.version import parse
label_desc: Use image node_id 1 for calling a global function with example usage: _ensure_cr(text) and returns: unknown