code: def assert_tensors_equal(sess, t1, t2, n):
      """Compute tensors `n` times and ensure that they are equal."""
  
      for _ in range(n):
          v1, v2 = sess.run([t1, t2])
  
          if v1.shape != v2.shape:
              return False
  
          if not np.all(v1 == v2):
              return False
  
      return True
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  from tensor2tensor.data_generators import algorithmic
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import problem_hparams
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import test_utils
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 1 for calling a global function with example usage: assert_tensors_equal(sess, t1, t2, n) and returns: True, False, False