code: def assertTensorEqual(self, actual, expected):
      if not isinstance(
          actual, (torch.FloatTensor, torch.cuda.FloatTensor)
      ):
          self.fail("Expected FloatTensor, got %s" % type(actual))
      if actual.size() != expected.size():
          self.fail(
              "Expected tensor of size %s, got %s"
              % (expected.size(), actual.size())
          )
      if not torch.allclose(
          actual, expected, rtol=0.00005, atol=0.00005, equal_nan=True
      ):
          self.fail("Expected\n%r\ngot\n%r" % (expected, actual))
  
imports: from unittest import main, TestCase
  import torch
  from torchbiggraph.losses import LogisticLossFunction, RankingLossFunction, SoftmaxLossFunction
label_desc: Use image node_id 1 for calling the TensorTestCase obj's underlying member method code with example usage: obj.assertTensorEqual(actual, expected) without return types