docstr: Returns self == y
docstr_tok: ["Returns","self","==","y"]
code: def eq(self, y):
      """Returns self == y"""
      if comm.get().get_world_size() == 2:
          return (self - y)._eqz_2PC()
  
      return 1 - self.ne(y)
  
imports: import torch
  from .None import communicator
  from .common.tensor_types import is_tensor
  from .common.util import torch_stack
  from .config import cfg
  from .cryptensor import CrypTensor
  from .cuda import CUDALongTensor
  from .encoder import FixedPointEncoder
  from .primitives.binary import BinarySharedTensor
  from .primitives.converters import convert
  from .ptype import ptype
label_desc: Use image node_id 23 for calling the MPCTensor obj's underlying member method code with example usage: obj.eq(y) and returns: unknown, unknown