'Returns display name for the given mode.'

def get_mode_display_name(self, mode):

    slug = mode.mode_slug.strip().lower()
    if (slug == 'credit'):
        return 'Credit'
    if ('professional' in slug):
        return 'Professional    Education'
    elif (slug == 'verified'):
        return 'Verified    Certificate'
    elif (slug == 'honor'):
        return 'Honor    Certificate'
    elif (slug == 'audit'):
        return 'Audit'
    return mode.mode_slug
