code: def is_docker_installed() -> bool:
      """Return `True` if docker is installed and working, else `False`."""
      try:
          # Run the docker --version command
          result = subprocess.run(
              ["docker", "--version"],
              stdout=subprocess.PIPE,
              stderr=subprocess.PIPE,
          )
          if result.returncode == 0:
              return True
          else:
              return False
      except FileNotFoundError:
          # If docker command is not found
          return False
  
imports: import json
  import logging
  import os
  import subprocess
  from typing import Any, Dict, List, Optional, Tuple, Union
  import requests
  from dockerpycreds.utils import find_executable
  from wandb.docker import auth, www_authenticate
  from wandb.errors import Error
label_desc: Use image node_id 3 for calling a global function with example usage: is_docker_installed() and returns: True, False, False