docstr: Helper method to compare dicts with values of type Tensor.
  
  Cannot use assertDictEqual when values are of type Tensor since
  tensor1 == tensor2 results in a tensor of bools. Use this instead.
docstr_tok: ["Helper","method","to","compare","dicts","with","values","of","type","Tensor",".","Can","not","use","assertDictEqual","when","values","are","of","type","Tensor","since","tensor1","==","tensor2","results","in","a","tensor","of","bools",".","Use","this","instead","."]
code: def assertDictOfTensorEqual(self, a, b) -> None:
      """
      Helper method to compare dicts with values of type Tensor.
  
      Cannot use assertDictEqual when values are of type Tensor since
      tensor1 == tensor2 results in a tensor of bools. Use this instead.
      """
  
      def _tensor_cmp(a, b):
          return torch.all(a == b)
  
      self.assertDictComparatorEqual(a, b, _tensor_cmp)
  
imports: import os
  import unittest
  from copy import deepcopy
  from typing import List
  from unittest.mock import Mock, patch
  import numpy
  import reagent.core.types
  import torch
  from reagent.preprocessing import transforms
  from reagent.preprocessing.types import InputColumn
label_desc: Use image node_id 5 for calling the TestTransforms obj's underlying member method code with example usage: obj.assertDictOfTensorEqual(a, b) and returns: torch