def METHOD_NAME(self, obj):
    try:
        if isinstance(obj['8564_'], dict):
            return [{
                'url': obj['8564_']['u'],
                'desc': obj['8564_'].get('y')
            }]
        else:
            return [{'url': item['u'], 'desc': item.get('y')}
                    for item in obj['8564_']]
    except KeyError:
        return []