code: def _remove_docker_image(image_name, raises=True):
      if "CI" not in os.environ:
          # delete image iff in CI environment
          return
      proc = subprocess.Popen(["docker", "rmi", "-f", image_name])
      if proc.wait() != 0 and raises:
          raise SystemError("Executing docker rmi failed.")
  
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 3 for calling a global function with example usage: _remove_docker_image(image_name, raises) without return types