code: def testAddShouldUseWarningWhenNotUsed(self):
      c = constant_op.constant(0, name="blah0")
  
      def in_this_function():
          h = tf_should_use._add_should_use_warning(
              c, warn_in_eager=True
          )
          del h
  
      with reroute_error() as error:
          in_this_function()
      msg = "\n".join(error.call_args[0])
      self.assertIn("Object was never used", msg)
      if not context.executing_eagerly():
          self.assertIn("blah0:0", msg)
      self.assertIn("in_this_function", msg)
      self.assertFalse(gc.garbage)
  
imports: import contextlib
  import gc
  import sys
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import tf_should_use
label_desc: Use image node_id 1 for calling the TfShouldUseTest obj's underlying member method code with example usage: obj.testAddShouldUseWarningWhenNotUsed() without return types