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: import logging
  import os
  import unittest
  from unittest import main, TestCase
  import torch
  import torch.multiprocessing
  import torch.nn
  from torch.optim import Adagrad
  from torchbiggraph.async_adagrad import AsyncAdagrad
  from torchbiggraph.row_adagrad import RowAdagrad
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