code: def testBasic(self):
      cm = TestContextManager()
  
      def body(var):
          cm.log.append("body(%r)" % var)
  
      _py_context_manager.test_py_context_manager(cm, body)
      self.assertEqual("\n".join(cm.log), NO_EXCEPTION_LOG)
  
file_path: tensorflow-upstream/tensorflow/python/framework/py_context_manager_test.py
imports: from tensorflow.python.framework import _py_context_manager
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the OpDefUtilTest obj's underlying member method code with example usage: obj.testBasic() without return types