code: def test_module(self):
      visitor = TestVisitor()
      traverse.traverse(test_module1, visitor)
  
      called = [parent for _, parent, _ in visitor.call_log]
  
      self.assertIn(test_module1.ModuleClass1, called)
      self.assertIn(test_module2.ModuleClass2, called)
  
file_path: tensorflow-upstream/tensorflow/tools/common/traverse_test.py
imports: from tensorflow.python.platform import googletest
  from tensorflow.tools.common import test_module1
  from tensorflow.tools.common import test_module2
  from tensorflow.tools.common import traverse
label_desc: Use image node_id 2 for calling the TraverseTest obj's underlying member method code with example usage: obj.test_module() without return types