code: def equal_entities_list(exp, actual, primary_field, with_vec=False):
      """
      compare two entities lists in inconsistent order
      :param with_vec: whether entities with vec field
      :param exp: exp entities list, list of dict
      :param actual: actual entities list, list of dict
      :return: True or False
      example:
      exp = [{"int": 0, "vec": [0.999999, 0.111111]}, {"int": 1, "vec": [0.888888, 0.222222]}]
      actual = [{"int": 1, "vec": [0.888888, 0.222222]}, {"int": 0, "vec": [0.999999, 0.111111]}]
      exp = actual
      """
      exp = exp.copy()
      if len(exp) != len(actual):
          return False
  
      if with_vec:
          for a in actual:
              # if vec field returned in query res
              if entity_in(a, exp, primary_field):
                  try:
                      # if vec field returned in query res
                      remove_entity(a, exp, primary_field)
                  except Exception as ex:
                      log.error(ex)
      else:
          for a in actual:
              if a in exp:
                  try:
                      exp.remove(a)
                  except Exception as ex:
                      log.error(ex)
      return True if len(exp) == 0 else False
  
file_path: milvus/tests/python_client/check/param_check.py
imports: import sys
  import operator
  from common import common_type
  from utils.util_log import test_log
label_desc: Use image node_id 12 for calling a global function with example usage: equal_entities_list(exp, actual, primary_field, with_vec) and returns: unknown, False