class_docstr: This class tests all functions of BinarySharedTensor.
class_docstr_tok: ["This","class","tests","all","functions","of","BinarySharedTensor","."]
code: def setUp(self) -> None:
      super().setUp()
      # We don't want the main process (rank -1) to initialize the communcator
      if self.rank >= 0:
          crypten.init()
  
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 1 for calling the TestBinary obj's underlying member method code with example usage: obj.setUp() without return types