def METHOD_NAME(abbrev, prefix = ''):
    name = ''
    for c in abbrev:
        if c.isupper():
            name += '_' + c
        else:
            name += c
    if prefix == '':
        return name
    else:
        return prefix + '_' + name[1:].upper()