<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_data_by_slug_or_404(model, slug, kind='', **kwargs):
 """Wrap get_data_by_slug, abort 404 if missing data."""

    data = get_data_by_slug(model, slug, kind, **kwargs)

    if not data:
        abort(404)

    return data