code: def remove_entity(entity, entities, primary_field):
      """
      according to the primary key to remove an entity from an entities list
      :param entity: dict
              {"int": 0, "vec": [0.999999, 0.111111]}
      :param entities: list of dict
              [{"int": 0, "vec": [0.999999, 0.111111]}, {"int": 1, "vec": [0.888888, 0.222222]}]
      :param primary_field: collection primary field
      :return: entities of removed entity
      """
      primary_default = ct.default_int64_field_name
      primary_field = (
          primary_default if primary_field is None else primary_field
      )
      primary_key = entity.get(primary_field, None)
      primary_keys = []
      for e in entities:
          primary_keys.append(e[primary_field])
      index = primary_keys.index(primary_key)
      entities.pop(index)
      return entities
  
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 11 for calling a global function with example usage: remove_entity(entity, entities, primary_field) and returns: entities