class_docstr: Test case that needs a Tensorflow Session.
class_docstr_tok: ["Test","case","that","needs","a","Tensorflow","Session","."]
docstr: Close the session.
docstr_tok: ["Close","the","session","."]
code: def teardown_method(self):
      """Close the session."""
      self.sess.__exit__(None, None, None)
      self.sess.close()
      del self.sess
      gc.collect()
  
file_path: garage/tests/fixtures/fixtures.py
imports: import gc
  import os
  from dowel import logger
  import tensorflow
  from garage.experiment import deterministic
  from garage.experiment.snapshotter import SnapshotConfig
  from tests.fixtures.logger import NullOutput
label_desc: Use image node_id 2 for calling the TfTestCase obj's underlying member method code with example usage: obj.teardown_method() without return types