def METHOD_NAME(item):
    """
    When creating the type crosslink, if an entity is a list container we
    want to link to the element type.
    """
    if type(item) is list:
        item = item[0]
    if item in vdsmapi.TYPE_KEYS or item == 'dict':
        return item
    else:
        return item['name']