class_docstr: Test case that needs a Tensorflow Session and default Graph.
class_docstr_tok: ["Test","case","that","needs","a","Tensorflow","Session","and","default","Graph","."]
docstr: Setup the Session and default Graph.
docstr_tok: ["Setup","the","Session","and","default","Graph","."]
code: def setup_method(self):
      """Setup the Session and default Graph."""
      self.graph = tf.Graph()
      for c in self.graph.collections:
          self.graph.clear_collection(c)
      self.graph_manager = self.graph.as_default()
      self.graph_manager.__enter__()
      self.sess = tf.compat.v1.Session(graph=self.graph)
      self.sess_manager = self.sess.as_default()
      self.sess_manager.__enter__()
      self.sess.__enter__()
      logger.add_output(NullOutput())
      deterministic.set_seed(1)
  
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 1 for calling the TfGraphTestCase obj's underlying member method code with example usage: obj.setup_method() without return types