class_docstr: Checks all functions of the DockerEnvironmentDriver
class_docstr_tok: ["Checks","all","functions","of","the","DockerEnvironmentDriver"]
code: def test_gpu_enabled(self):
      if not self.docker_environment_driver.gpu_enabled():
          print("GPU not available")
      else:
          log_filepath = os.path.join(
              self.docker_environment_driver.root, "test.log"
          )
          (
              return_code,
              run_id,
              logs,
          ) = self.docker_environment_driver.run(
              "nvidia/cuda",
              {
                  "command": ["nvidia-smi"],
                  "name": str(uuid.uuid1()),
                  "detach": True,
                  "gpu": True,
              },
              log_filepath,
          )
          assert return_code == 0
  
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 39 for calling the TestDockerEnv obj's underlying member method code with example usage: obj.test_gpu_enabled() without return types