docstr: Method: start response checking for milvus API call
docstr_tok: ["Method",":","start","response","checking","for","milvus","API","call"]
code: def run(self):
      """
      Method: start response checking for milvus API call
      """
      result = True
      if self.check_task is None:
          # Interface normal return check
          result = self.assert_succ(self.succ, True)
  
      elif self.check_task == CheckTasks.err_res:
          # Interface return error code and error message check
          result = self.assert_exception(
              self.response, self.succ, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_nothing:
          return self.succ
  
      elif self.check_task == CheckTasks.ccr:
          # Connection interface response check
          result = self.check_value_equal(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_collection_property:
          # Collection interface response check
          result = self.check_collection_property(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_partition_property:
          # Partition interface response check
          result = self.check_partition_property(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_search_results:
          # Search interface of collection and partition that response check
          result = self.check_search_results(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_search_iterator:
          # Search iterator interface of collection and partition that response check
          result = self.check_search_iterator(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_query_results:
          # Query interface of collection and partition that response check
          result = self.check_query_results(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_query_iterator:
          # query iterator interface of collection and partition that response check
          result = self.check_query_iterator(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_query_empty:
          result = self.check_query_empty(self.response, self.func_name)
  
      elif self.check_task == CheckTasks.check_query_empty:
          result = self.check_query_not_empty(
              self.response, self.func_name
          )
  
      elif self.check_task == CheckTasks.check_distance:
          # Calculate distance interface that response check
          result = self.check_distance(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_delete_compact:
          result = self.check_delete_compact_plan(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_merge_compact:
          result = self.check_merge_compact_plan(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_role_property:
          # Collection interface response check
          result = self.check_role_property(
              self.response, self.func_name, self.check_items
          )
  
      elif self.check_task == CheckTasks.check_permission_deny:
          # Collection interface response check
          result = self.check_permission_deny(self.response, self.succ)
  
      elif self.check_task == CheckTasks.check_rg_property:
          # describe resource group interface response check
          result = self.check_rg_property(
              self.response, self.func_name, self.check_items
          )
  
      elif (
          self.check_task
          == CheckTasks.check_describe_collection_property
      ):
          # describe collection interface(high level api) response check
          result = self.check_describe_collection_property(
              self.response, self.func_name, self.check_items
          )
  
      # Add check_items here if something new need verify
  
      return result
  
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 2 for calling the ResponseChecker obj's underlying member method code with example usage: obj.run() and returns: result, self