code: def setUp(self):
      super(UniquePtrTest, self).setUp()
  
      class MockClass:
          def __init__(self):
              self.deleted = False
  
      def deleter(obj):
          obj.deleted = True
  
      self.obj = MockClass()
      self.deleter = deleter
  
file_path: tensorflow-upstream/tensorflow/python/framework/c_api_util_test.py
imports: import gc
  from tensorflow.python.framework import c_api_util
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the UniquePtrTest obj's underlying member method code with example usage: obj.setUp() without return types