code: def _run_docker(trial_ids, db_url, timeout, raise_exception, image):
      import docker
  
      client = docker.from_env()
  
      container = client.containers.run(
          image,
          "python -m powerlift.run",
          environment={
              "TRIAL_IDS": ",".join([str(x) for x in trial_ids]),
              "DB_URL": db_url,
              "TIMEOUT": timeout,
              "RAISE_EXCEPTION": raise_exception,
          },
          network_mode="host",
          detach=True,
      )
      exit_code = container.wait()
      container.remove()
      return exit_code
  
file_path: interpret/python/powerlift/src/powerlift/executors/docker.py
imports: from powerlift.bench.store import Store
  from powerlift.executors.localmachine import LocalMachine
  from powerlift.executors.base import handle_err
  from typing import Iterable, List
label_desc: Use image node_id 1 for calling a global function with example usage: _run_docker(trial_ids, db_url, timeout, raise_exception, image) and returns: exit_code