class_docstr: Tests `TrainSampleHook` class.
    
class_docstr_tok: ["Tests","`","TrainSampleHook","`","class","."]
code: def tearDown(self):
      super(TestTrainSampleHook, self).tearDown()
      shutil.rmtree(self.model_dir)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import tempfile
  import shutil
  import time
  import tensorflow
  from tensorflow.python.training import monitored_session
  from tensorflow import gfile
  from seq2seq import graph_utils
  from seq2seq.training import hooks
label_desc: Use image node_id 2 for calling the TestTrainSampleHook obj's underlying member method code with example usage: obj.tearDown() without return types