code: def _equal_zero_public(prot, x: PondPublicTensor, dtype=None):
      """Check if a public tensor's values equal zero."""
  
      with tf.name_scope("equal_zero"):
          x_on_0, x_on_1 = x.unwrapped
  
          with tf.device(prot.server_0.device_name):
              equal_zero_on_0 = x_on_0.equal_zero(dtype)
  
          with tf.device(prot.server_1.device_name):
              equal_zero_on_1 = x_on_1.equal_zero(dtype)
  
          return PondPublicTensor(
              prot, equal_zero_on_0, equal_zero_on_1, False
          )
  
imports: from __future__ import absolute_import
  import math
  import random
  import sys
  from typing import Optional
  from typing import Tuple
  import numpy
  import tensorflow
  from tf_encrypted.config import get_config
  from tf_encrypted.player import Player
  from tf_encrypted.protocol import memoize
  from tf_encrypted.protocol.pond import Pond
  from tf_encrypted.protocol.pond import PondMaskedTensor
  from tf_encrypted.protocol.pond import PondPrivateTensor
  from tf_encrypted.protocol.pond import PondPublicTensor
  from tf_encrypted.protocol.pond import PondTensor
  from tf_encrypted.protocol.pond import _type
  from tf_encrypted.protocol.protocol import nodes
  from tf_encrypted.protocol.securenn.odd_tensor import oddint64_factory
  from tf_encrypted.tensor import int64factory
  from tf_encrypted.tensor import native_factory
  from tf_encrypted.tensor.factory import AbstractFactory
  from tf_encrypted.tensor.factory import AbstractTensor
label_desc: Use image node_id 6 for calling a global function with example usage: _equal_zero_public(prot, x, dtype) and returns: PondPublicTensor