from typing import OrderedDict


def transform_templateListItem(result):
    """Transforms an item from a template list into a row in a table"""
    result = OrderedDict([('Template Id', result['id'] if 'id' in result else ''),
                        ('Title', result['title'] if 'title' in result else ''),
                        ('Category', result['category'] if 'category' in result else '')])
    return result