docstr: target: check the query results
  method: 1. check the query number
          2. check the limit(topK) and ids
          3. check the distance
  expected: check the search is ok
docstr_tok: ["target",":","check","the","query","results","method",":","1.","check","the","query","number","2.","check","the","limit","(","topK",")","and","ids","3.","check","the","distance","expected",":","check","the","search","is","ok"]
code: def check_query_iterator(query_res, func_name, check_items):
      """
      target: check the query results
      method: 1. check the query number
              2. check the limit(topK) and ids
              3. check the distance
      expected: check the search is ok
      """
      log.info(
          "query_iterator_results_check: checking the query results"
      )
      if func_name != "query_iterator":
          log.warning(
              "The function name is {} rather than {}".format(
                  func_name, "query_iterator"
              )
          )
      query_iterator = query_res
      pk_list = []
      while True:
          res = query_iterator.next()
          if len(res) == 0:
              log.info("search iteration finished, close")
              query_iterator.close()
              break
          for i in range(len(res)):
              pk_list.append(res[i][ct.default_int64_field_name])
          if check_items.get("limit", None):
              assert len(res) <= check_items["limit"]
      assert len(pk_list) == len(set(pk_list))
      if check_items.get("count", None):
          log.info(len(pk_list))
          assert len(pk_list) == check_items["count"]
      if check_items.get("exp_ids", None):
          assert pk_list == check_items["exp_ids"]
      log.info("check: total %d results" % len(pk_list))
  
      return True
  
imports: from pymilvus.client.types import CompactionPlans
  from pymilvus import Role
  from utils.util_log import test_log
  from common import common_type
  from common import common_func
  from common.common_type import CheckTasks, Connect_Object_Name
  from pymilvus import Collection, Partition, ResourceGroupInfo
  from utils.api_request import Error
  import check.param_check
label_desc: Use image node_id 13 for calling the ResponseChecker obj's underlying member method code with example usage: obj.check_query_iterator(query_res, func_name, check_items) and returns: True