class_docstr: This EnvironmentDriver handles environment management in the project using docker
  
  Parameters
  ----------
  root : str, optional
      home filepath for project
      (default is empty)
  docker_execpath : str, optional
      execution path for docker
      (default is "docker" which defers to system)
  docker_socket : str, optional
      socket path to docker daemon to connect
      (default is None, this takes the default path for the system)
  
  Attributes
  ----------
  root : str
      home filepath for project
  datmo_directory_name : str
      datmo directory name for project
  docker_execpath : str, optional
      docker execution path for the system
  docker_socket : str, optional
      specific socket for docker
      (default is None, which means system default is used by docker)
  client : DockerClient
      docker python api client
  cpu_prefix : list
      list of strings for the prefix command for all docker commands
  info : dict
      information about the docker daemon connection
  is_connected : bool
      True if connected to daemon else False
  type : str
      type of EnvironmentDriver
class_docstr_tok: ["This","EnvironmentDriver","handles","environment","management","in","the","project","using","docker","Parameters","--","--","--","--","--","root",":","str",",","optional","home","filepath","for","project","(","default","is","empty",")","docker_execpath",":","str",",","optional","execution","path","for","docker","(","default","is","``","docker","''","which","defers","to","system",")","docker_socket",":","str",",","optional","socket","path","to","docker","daemon","to","connect","(","default","is","None",",","this","takes","the","default","path","for","the","system",")","Attributes","--","--","--","--","--","root",":","str","home","filepath","for","project","datmo_directory_name",":","str","datmo","directory","name","for","project","docker_execpath",":","str",",","optional","docker","execution","path","for","the","system","docker_socket",":","str",",","optional","specific","socket","for","docker","(","default","is","None",",","which","means","system","default","is","used","by","docker",")","client",":","DockerClient","docker","python","api","client","cpu_prefix",":","list","list","of","strings","for","the","prefix","command","for","all","docker","commands","info",":","dict","information","about","the","docker","daemon","connection","is_connected",":","bool","True","if","connected","to","daemon","else","False","type",":","str","type","of","EnvironmentDriver"]
code: def delete_environment_dir(self):
      shutil.rmtree(self.environment_directory_path)
      return True
  
imports: import ast
  import os
  import shutil
  import re
  import time
  import json
  import subprocess
  import platform
  from io import open
  from docker import DockerClient
  from docker import errors
  from datmo.core.util.i18n import get
  from datmo.core.util.exceptions import PathDoesNotExist, EnvironmentInitFailed, EnvironmentConnectFailed, EnvironmentExecutionError, FileAlreadyExistsError, EnvironmentRequirementsCreateError, EnvironmentImageNotFound, EnvironmentContainerNotFound, GPUSupportNotEnabled, EnvironmentDoesNotExist, FileStructureError
  from datmo.core.controller.environment.driver import EnvironmentDriver
label_desc: Use image node_id 9 for calling the DockerEnvironmentDriver obj's underlying member method code with example usage: obj.delete_environment_dir() and returns: True