def METHOD_NAME(offs, lim):
    return get_action(u'datastore_search')(
        None,
        dict({
            u'resource_id': resource_id,
            u'limit': PAGINATE_BY
            if limit is None else min(PAGINATE_BY, lim),
            u'offset': offs,
            u'sort': sort,
            u'records_format': records_format,
            u'include_total': False,
        }, **search_params)
    )