code: def to_tensor(self):
      if self.value == 0:
          return ArithmeticSharedTensor
      elif self.value == 1:
          return BinarySharedTensor
      else:
          raise ValueError(
              "Cannot convert %s to encrypted tensor" % self.name
          )
  
imports: from enum import Enum
  from .primitives import ArithmeticSharedTensor, BinarySharedTensor
label_desc: Use image node_id 1 for calling the ptype obj's underlying member method code with example usage: obj.to_tensor() and returns: ArithmeticSharedTensor, BinarySharedTensor