class_docstr: Checks all functions of the DockerEnvironmentDriver
class_docstr_tok: ["Checks","all","functions","of","the","DockerEnvironmentDriver"]
code: def test_exists_environment_dir(self):
      result = self.docker_environment_driver.exists_environment_dir()
      assert result == False and not os.path.isdir(
          self.docker_environment_driver.environment_directory_path
      )
      self.docker_environment_driver.init()
      self.docker_environment_driver.create_environment_dir()
      result = self.docker_environment_driver.exists_environment_dir()
      assert result == True and os.path.isdir(
          self.docker_environment_driver.environment_directory_path
      )
  
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 9 for calling the TestDockerEnv obj's underlying member method code with example usage: obj.test_exists_environment_dir() without return types