docstr: Sets encoder to value
docstr_tok: ["Sets","encoder","to","value"]
code: def encoder(self, value):
      """Sets encoder to value"""
      self._tensor.encoder = value
  
imports: import torch
  from crypten import communicator
  from crypten.common.tensor_types import is_tensor
  from crypten.common.util import torch_stack
  from crypten.config import cfg
  from crypten.cuda import CUDALongTensor
  from ..cryptensor import CrypTensor
  from ..encoder import FixedPointEncoder
  from .primitives.binary import BinarySharedTensor
  from .primitives.converters import convert
  from .ptype import ptype
label_desc: Use image node_id 20 for calling the MPCTensor obj's underlying member method code with example usage: obj.encoder(value) without return types