code: def setup_method(self):
      super().setup_method()
      self.temp_dir = tempfile.TemporaryDirectory()
      snapshot_config = SnapshotConfig(
          snapshot_dir=self.temp_dir.name,
          snapshot_mode="all",
          snapshot_gap=1,
      )
      fixture_exp(snapshot_config, self.sess)
      for c in self.graph.collections:
          self.graph.clear_collection(c)
  
file_path: garage/tests/garage/experiment/test_snapshotter_integration.py
imports: import tempfile
  import pytest
  from garage.envs import GymEnv
  from garage.experiment import SnapshotConfig, Snapshotter
  from garage.tf.algos import VPG
  from garage.tf.policies import CategoricalMLPPolicy
  from tests.fixtures import TfGraphTestCase
  from tests.fixtures.experiment import fixture_exp
label_desc: Use image node_id 1 for calling the TestSnapshot obj's underlying member method code with example usage: obj.setup_method() without return types