class_docstr: This class tests all functions of BinarySharedTensor.
class_docstr_tok: ["This","class","tests","all","functions","of","BinarySharedTensor","."]
docstr: Tests incorrect src in BinarySharedTensor fails as expected
docstr_tok: ["Tests","incorrect","src","in","BinarySharedTensor","fails","as","expected"]
code: def test_src_match_input_data(self) -> None:
      """Tests incorrect src in BinarySharedTensor fails as expected"""
      tensor = get_random_test_tensor(is_float=True)
      tensor.src = 0
      for testing_src in [None, "abc", -2, self.world_size]:
          with self.assertRaises(AssertionError):
              BinarySharedTensor(tensor, src=testing_src)
  
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 19 for calling the TestBinary obj's underlying member method code with example usage: obj.test_src_match_input_data() without return types