code: def to_public(self):
      return PHECipherPublic(
          self.kind,
          self.key_size,
          self.pk,
          self.evaluator,
          self.coder,
          self._tensor_cipher.to_public(),
          self.can_support_negative_number,
          self.can_support_squeeze,
          self.can_support_pack,
      )
  
imports: import logging
  import typing
  from fate.arch.config import cfg
  from ..unify import device
label_desc: Use image node_id 4 for calling the PHECipher obj's underlying member method code with example usage: obj.to_public() and returns: PHECipherPublic