def format_deprecated_warn(msg, version, repl='', help=False):
    """
    Calling the method will return in a warning message about the node
    in question being scheduled for removal.

    If repl (replacement message) is provided that message be included.
    """
    help_msg = ''.join(['\nPlease use {} instead.'.format(repl) if repl else
        '', 
        """

To disable deprecation warnings, uncheck:
Preferences -> Advanced -> Display warnings for deprecated nodes."""
         if help else ''])
    return '{} is deprecated and will be removed in version {}.{}'.format(msg,
        version, help_msg)
