def METHOD_NAME(self):
    """Loads alert catalogue yaml files
    Returns
    -------
    dict
        The alerts catalogue as a Python dictionary
    """
    alertDict = {}
    for filePath in self.alertFiles:
        # '{}'.format(filePath) instead of simple open(filePath,'r')
        # is needed for Py2 support only
        with codecs.open('{}'.format(filePath), 'r', 'utf-8') as ymlFile:
            entry = yaml.METHOD_NAME(ymlFile, Loader=yaml.SafeLoader)
            if entry is None:
                continue  # this might be a stub for future entry
            ID = entry['code']
            alertDict[ID] = entry
            if 'url' not in entry:  # give a default URL
                entry['url'] = ('https://psychopy.org/alerts/{}.html'
                                .format(ID))
    return alertDict