code: def testDeleteImage(self, mock_check_output, mock_docker):
      image_name = "gcr.io/some/name"
      mock_client = mock_docker.return_value
      mock_client.images.list.return_value = [
          docker.models.images.Image(
              attrs={
                  "Id": "sha256:abcdefghijkl",
                  "Created": "2019-06-03T19:57:07.576509403Z",
                  "RepoDigests": ["gcr.io/some/name@sha256:123456789"],
              }
          )
      ]
  
      docker_utils.delete_image(image_name)
  
      mock_client.images.list.assert_called_once_with(image_name)
      mock_client.images.remove.assert_called_once_with(
          "sha256:abcdefghijkl", force=True
      )
      mock_check_output.assert_called_once_with(
          [
              "gcloud",
              "container",
              "images",
              "delete",
              "gcr.io/some/name@sha256:123456789",
              "--quiet",
              "--force-delete-tags",
          ]
      )
  
file_path: tfx/tfx/utils/docker_utils_test.py
imports: import subprocess
  from unittest import mock
  import docker
  import tensorflow
  from tfx.utils import docker_utils
label_desc: Use image node_id 1 for calling the DockerUtilsTest obj's underlying member method code with example usage: obj.testDeleteImage(mock_check_output, mock_docker) without return types