def METHOD_NAME(self, event, msg):
    """ Wrap a toolchain notifier in a colorizer. This colorizer will wrap
    notifications in a color if the severity matches a color in the
    CLI_COLOR_MAP.
    """
    """The notification function inself"""
    if sys.stdout.isatty() and event.get('severity', None) in CLI_COLOR_MAP:
        sys.stdout.write(self.colorstring_to_escapecode(
            CLI_COLOR_MAP[event['severity']]))
        print(msg)
        sys.stdout.write(self.colorstring_to_escapecode('default'))
    else:
        print(msg)