def METHOD_NAME(data):
    try:
        return dict(
            id=data['publishedfileid'],
            file_size=data.get('file_size', 0),
            title=data['title'],
            time_created=datetime.fromtimestamp(int(data['time_created'])),
            time_updated=datetime.fromtimestamp(int(data['time_updated'])),
            visibility=data['visibility'],
            banned=data['banned'] and (data['ban_reason'] or '<unknown ban reason>'),
            sub_count_current=data['subscriptions'],
            sub_count_lifetime=data['lifetime_subscriptions'],
            fave_count_current=data['favorited'],
            fave_count_lifetime=data['lifetime_favorited'],
            page_views=data['views'],
        )
    except KeyError as ex:
        print(data)
        raise ex