class_docstr: This class tests all functions of the ArithmeticSharedTensor.
docstr: Tests incorrect src in ArithmeticSharedTensor fails as expected
docstr_tok: ["Tests","incorrect","src","in","ArithmeticSharedTensor","fails","as","expected"]
code: def test_src_match_input_data(self) -> None:
      """Tests incorrect src in ArithmeticSharedTensor 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):
              ArithmeticSharedTensor(tensor, src=testing_src)
  
imports: import itertools
  import logging
  import unittest
  import crypten
  import crypten.communicator
  import torch
  import torch.nn.functional
  from crypten.common.rng import generate_random_ring_element
  from crypten.common.tensor_types import is_float_tensor
  from crypten.common.util import count_wraps
  from crypten.mpc.primitives import ArithmeticSharedTensor
  from test.multiprocess_test_case import get_random_test_tensor, MultiProcessTestCase
label_desc: Use image node_id 35 for calling the TestArithmetic obj's underlying member method code with example usage: obj.test_src_match_input_data() without return types