code: def setup_method(self):
      # provide mountable tmp directory for docker
      tempfile.tempdir = (
          "/tmp" if not platform.system() == "Windows" else None
      )
      test_datmo_dir = os.environ.get(
          "TEST_DATMO_DIR", tempfile.gettempdir()
      )
      self.temp_dir = tempfile.mkdtemp(dir=test_datmo_dir)
      Config().set_home(self.temp_dir)
  
      self.project = ProjectController()
      self.project.init("test", "test description")
      self.snapshot = SnapshotController()
  
      # Create environment_driver definition
      self.env_def_path = os.path.join(self.temp_dir, "Dockerfile")
      with open(self.env_def_path, "wb") as f:
          f.write(to_bytes("FROM python:3.5-alpine"))
  
      # Create config
      self.config_filepath = os.path.join(
          self.snapshot.home, "config.json"
      )
      with open(self.config_filepath, "wb") as f:
          f.write(to_bytes(str('{"foo":1}')))
  
      # Create stats
      self.stats_filepath = os.path.join(
          self.snapshot.home, "stats.json"
      )
      with open(self.stats_filepath, "wb") as f:
          f.write(to_bytes(str('{"bar":1}')))
  
      # Create test file
      self.filepath = os.path.join(self.snapshot.home, "file.txt")
      with open(self.filepath, "wb") as f:
          f.write(to_bytes(str("test")))
  
imports: import os
  import tempfile
  import platform
  from datmo.config import Config
  from datmo.core.controller.project import ProjectController
  from datmo.core.controller.snapshot import SnapshotController
  from datmo.core.util.exceptions import CommitDoesNotExist
label_desc: Use image node_id 1 for calling the TestSnapshotController obj's underlying member method code with example usage: obj.setup_method() without return types