def _list_response(data):
    """
    If `data` is not a `list`, return a list with `data` as the only element.
    Otherwise, return `data`
    """
    if not isinstance(data, list):
        return [data]
    return data
