code: def testFrameSummaryEqualityAndHash(self):
      # Both defined on the same line to produce identical stacks.
      frame1, frame2 = (
          tf_stack.extract_stack(),
          tf_stack.extract_stack(),
      )
      self.assertEqual(len(frame1), len(frame2))
      for f1, f2 in zip(frame1, frame2):
          self.assertEqual(f1, f2)
          self.assertEqual(hash(f1), hash(f1))
          self.assertEqual(hash(f1), hash(f2))
      self.assertEqual(frame1, frame2)
      self.assertEqual(hash(tuple(frame1)), hash(tuple(frame2)))
  
file_path: tensorflow-upstream/tensorflow/python/util/tf_stack_test.py
imports: from tensorflow.python.platform import test
  from tensorflow.python.util import tf_stack
label_desc: Use image node_id 2 for calling the TFStackTest obj's underlying member method code with example usage: obj.testFrameSummaryEqualityAndHash() without return types