def _map_unity_proxy_to_object(value):
    """
    Map returning value, if it is unity SFrame, SArray, map it
    """
    vtype = type(value)
    if vtype in _proxy_map:
        return _proxy_map[vtype](value)
    elif vtype == list:
        return [_map_unity_proxy_to_object(v) for v in value]
    elif vtype == dict:
        return {k:_map_unity_proxy_to_object(v) for k,v in value.items()}
    else:
        return value
def _map_unity_proxy_to_object ( value ) : vtype = type ( value ) if vtype in _proxy_map : return _proxy_map [ vtype ] ( value ) elif vtype == list : return [ _map_unity_proxy_to_object ( v ) for v in value ] elif vtype == dict : return { k : _map_unity_proxy_to_object ( v ) for k , v in value . items ( ) } else : return value
Map returning value, if it is unity SFrame, SArray, map it