def _get_type(element):
    'Returns the SDK element type.'
    if ('schema_id' in element):
        return element['data']['type']
    return element['type']
Returns the SDK element type.
def _get_type(element):
    
    if ('schema_id' in element):
        return element['data']['type']
    return element['type']