code: def _test_encode(self):
      # encode ndarray to int64 array before define tf.tensor
      computed_list = list()
      ground_list = list()
  
      encoded_A = tf_i128.encode(self._A * self.scale)
      encoded_B = tf_i128.encode(self._B * self.scale)
      encoded_C = tf_i128.encode(self._C * self.scale)
      encoded_D = tf_i128.encode(self._D * self.scale)
      encoded_E = tf_i128.encode(self._E * self.scale)
  
      computed_list.append(
          tf_i128.from_i128(
              tf.Variable(encoded_A, dtype=tf.int64), self.scale
          )
      )
      computed_list.append(
          tf_i128.from_i128(
              tf.Variable(encoded_B, dtype=tf.int64), self.scale
          )
      )
      computed_list.append(
          tf_i128.from_i128(
              tf.Variable(encoded_C, dtype=tf.int64), self.scale
          )
      )
      computed_list.append(
          tf_i128.from_i128(
              tf.Variable(encoded_D, dtype=tf.int64), self.scale
          )
      )
      computed_list.append(
          tf_i128.from_i128(
              tf.Variable(encoded_E, dtype=tf.int64), self.scale
          )
      )
  
      ground_list.append(self._A)
      ground_list.append(self._B)
      ground_list.append(self._C)
      ground_list.append(self._D)
      ground_list.append(self._E)
  
      for c, g in zip(computed_list, ground_list):
          self.assertTrue(np.allclose(c, g), "wrong encode")
  
imports: import unittest
  import numpy
  import tensorflow
  from tf_encrypted.operations import tf_i128
label_desc: Use image node_id 11 for calling the I128TestCase obj's underlying member method code with example usage: obj._test_encode() without return types