class_docstr: This class tests all functions of CUDALongTensor as well as its integration with MPCTensor.
class_docstr_tok: ["This","class","tests","all","functions","of","CUDALongTensor","as","well","as","its","integration","with","MPCTensor","."]
code: def _check_int(self, result, reference, msg):
      # Check sizes match
      self.assertTrue(result.size() == reference.size(), msg)
  
      is_eq = (result == reference).all().item() == 1
  
      if not is_eq:
          logging.info(msg)
          logging.info("Result %s" % result)
          logging.info("Reference %s" % reference)
          logging.info("Result - Reference = %s" % (result - reference))
  
      self.assertTrue(is_eq, msg=msg)
  
imports: import collections
  import itertools
  import logging
  import unittest
  import crypten
  import torch
  import torch.nn
  import torch.nn.functional
  from crypten.config import cfg
  from crypten.cuda import CUDALongTensor
  from test.multiprocess_test_case import get_random_test_tensor, MultiProcessTestCase
  from test.test_mpc import TestMPC
label_desc: Use image node_id 1 for calling the TestCUDA obj's underlying member method code with example usage: obj._check_int(result, reference, msg) without return types