code: def _load_docker_env():
      if "USE_MINIKUBE_DOCKER_ENV" not in os.environ and (
          os.path.exists("/var/run/docker.sock")
          or not shutil.which("minikube")
      ):
          return
  
      proc = subprocess.Popen(
          ["minikube", "docker-env"], stdout=subprocess.PIPE
      )
      proc.wait(30)
      for line in proc.stdout:
          line = line.decode().split("#", 1)[0]
          line = line.strip()  # type: str | bytes
          export_pos = line.find("export")
          if export_pos < 0:
              continue
          line = line[export_pos + 6 :].strip()
          var, value = line.split("=", 1)
          os.environ[var] = value.strip('"')
  
imports: import glob
  import os
  import shutil
  import subprocess
  import tempfile
  import uuid
  from contextlib import contextmanager
  from distutils.spawn import find_executable
  import numpy
  import pytest
  from ....None import tensor
  from ....tests.core import mock
  from ..None import new_cluster
  from ..config import HostPathVolumeConfig
label_desc: Use image node_id 4 for calling a global function with example usage: _load_docker_env() without return types