code: def is_buildx_installed() -> bool:
      """Return `True` if docker buildx is installed and working."""
      global _buildx_installed
      if _buildx_installed is not None:
          return _buildx_installed  # type: ignore
      if not find_executable("docker"):
          _buildx_installed = False
      else:
          help_output = shell(["buildx", "--help"])
          _buildx_installed = (
              help_output is not None and "buildx" in help_output
          )
      return _buildx_installed
  
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 2 for calling a global function with example usage: is_buildx_installed() and returns: _buildx_installed, _buildx_installed