code: def _image_exist(image: str) -> bool:
      """
      Checks if the given image exists in Docker
      """
      p = subprocess.run(
          ["docker", "manifest", "inspect", image],
          stdout=sys.stderr,
          stderr=sys.stderr,
      )
      return p.returncode == 0
  
file_path: ray/release/ray_release/byod/build.py
imports: from typing import List, Optional, Dict
  import boto3
  import hashlib
  import os
  import subprocess
  import sys
  import time
  from ray_release.config import RELEASE_PACKAGE_DIR
  from ray_release.configs.global_config import get_global_config
  from ray_release.logger import logger
  from ray_release.test import Test, DATAPLANE_ECR_REPO, DATAPLANE_ECR_ML_REPO
label_desc: Use image node_id 7 for calling a global function with example usage: _image_exist(image) and returns: unknown