class_docstr: This class tests all functions of BinarySharedTensor.
class_docstr_tok: ["This","class","tests","all","functions","of","BinarySharedTensor","."]
docstr: Test bitwise-invert function on BinarySharedTensor
docstr_tok: ["Test","bitwise-invert","function","on","BinarySharedTensor"]
code: def test_invert(self) -> None:
      """Test bitwise-invert function on BinarySharedTensor"""
      tensor = get_random_test_tensor(is_float=False)
      encrypted_tensor = BinarySharedTensor(tensor)
      reference = ~tensor
      encrypted_out = ~encrypted_tensor
      self._check(encrypted_out, reference, "invert failed")
  
imports: import itertools
  import logging
  import unittest
  import crypten
  import torch
  from crypten.common.tensor_types import is_int_tensor
  from crypten.mpc.primitives import BinarySharedTensor
  from test.multiprocess_test_case import get_random_test_tensor, MultiProcessTestCase
label_desc: Use image node_id 10 for calling the TestBinary obj's underlying member method code with example usage: obj.test_invert() without return types