def delete(self, entity):
    # This is not very nice: we're calling two protected methods here...
    key = _normalize_key(entity)
    key_size = len(key._ToPb().Encode())
    if (self.deletes.length >= MAX_ENTITY_COUNT or
        (self.deletes.size + key_size) > self.max_pool_size):
      self.__flush_deletes()
    self.deletes.append(key, key_size)

  # TODO(user): some kind of error handling/retries is needed here.
Based on signature find actors' requires in global storage,
dataset/ETHPy150Open livid/v2ex/mapreduce/context.py/MutationPool.delete--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/plugins/requirements/shadow_actor_reqs_match.py/req_op