code: def setUp(self):
      super().setUp()
      # test for enable eager test
      ops.enable_eager_execution()
      self.assertTrue(context.executing_eagerly())
  
      # Calling enable eager execution a second time should not cause an error.
      ops.enable_eager_execution()
      self.assertTrue(context.executing_eagerly())
  
file_path: tensorflow-upstream/tensorflow/python/framework/ops_enable_eager_test.py
imports: from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the OpsEnableAndDisableEagerTest obj's underlying member method code with example usage: obj.setUp() without return types