def METHOD_NAME(response, objects):
    """
    Assert object or objects exist in response data.
    """
    data = response.data
    if 'results' in data:
        data = data['results']
    if not (isinstance(objects, list) or isinstance(objects, tuple)):
        objects = [objects]
    expected_ids = {obj.id for obj in objects}
    actual_ids = {obj['id'] for obj in data}
    assert expected_ids == actual_ids, '%s does not match %s' % (expected_ids, actual_ids)
    assert len(objects) == len(data), '%s does not match %s' % (len(data), len(objects))