def METHOD_NAME(self, scope, key, items, limit=None, timestamp=None):
    if timestamp is None:
        timestamp = int(time.time())
    arguments = [
        "COMPARE",
        timestamp,
        self.namespace,
        self.bands,
        self.interval,
        self.retention,
        self.candidate_set_limit,
        scope,
        limit if limit is not None else -1,
        key,
    ]
    for idx, threshold in items:
        arguments.extend([idx, threshold])
    return self._as_search_result(self.__index(scope, arguments))