class_docstr: Checks all functions of the DockerEnvironmentDriver
class_docstr_tok: ["Checks","all","functions","of","the","DockerEnvironmentDriver"]
code: def setup_method(self):
      self.temp_dir = tempfile.mkdtemp(dir=test_datmo_dir)
      # Ensure the ".datmo" directory is there (this is ensured by higher level functions
      # in practice
      os.makedirs(os.path.join(self.temp_dir, ".datmo"))
      # Test the default parameters
      self.docker_environment_driver = DockerEnvironmentDriver(
          self.temp_dir, ".datmo"
      )
      self.image_name = str(uuid.uuid1())
      self.random_text = str(uuid.uuid1())
      self.dockerfile_path = os.path.join(self.temp_dir, "Dockerfile")
      with open(self.dockerfile_path, "wb") as f:
          f.write(to_bytes("FROM python:3.5-alpine" + os.linesep))
          f.write(to_bytes(str("RUN echo " + self.random_text)))
  
imports: from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import shutil
  import tempfile
  import platform
  import threading
  import sys
  import uuid
  import timeout_decorator
  from io import open
  from datmo.core.controller.environment.driver.dockerenv import DockerEnvironmentDriver
  from datmo.core.util.exceptions import EnvironmentInitFailed, EnvironmentConnectFailed, FileAlreadyExistsError, EnvironmentRequirementsCreateError, EnvironmentImageNotFound, EnvironmentContainerNotFound, PathDoesNotExist, EnvironmentDoesNotExist, EnvironmentExecutionError
  from datmo.core.util.misc_functions import check_docker_inactive, pytest_docker_environment_failed_instantiation
label_desc: Use image node_id 1 for calling the TestDockerEnv obj's underlying member method code with example usage: obj.setup_method() without return types