def METHOD_NAME(data, code=200, headers=None):
    """Build a json flask response using the given search result.
    Returns:
        :class:`flask.Response`: A flask response with json data.
    """
    # TODO
    raise NotImplementedError()