def METHOD_NAME(cls, column, value):
    try:
        if column.name == 'hashed':
            return '<bcrypted>'
        elif getattr(column, 'private', None):
            return '<private>'
        elif isinstance(column.type, MultiChoice):
            if not value:
                return ''
            opts = dict(column.type.choices)
            value_opts = map(lambda s: int(s or 0), str(value).split(','))
            return METHOD_NAME(','.join(opts[i] for i in value_opts if i in opts))
        elif isinstance(column.type, Choice) and value not in [None, '']:
            opts = dict(column.type.choices)
            return METHOD_NAME(opts.get(int(value), '<nonstandard>'))
        else:
            return METHOD_NAME(value)
    except Exception as e:
        raise ValueError('Error formatting {} ({!r})'.format(column.name, value)) from e