code: def build_docker_image(
      image_name: str, image_name_tag_map: Dict[str, str]
  ) -> str:
      logger = JinaLogger("kubernetes-testing")
      image_tag = image_name + ":" + image_name_tag_map[image_name]
      image, build_logs = client.images.build(
          path=os.path.join(cur_dir, image_name), tag=image_tag
      )
      for chunk in build_logs:
          if "stream" in chunk:
              for line in chunk["stream"].splitlines():
                  logger.debug(line)
      return image.tags[-1]
  
imports: import contextlib
  import os
  import subprocess
  import tempfile
  import time
  from pathlib import Path
  from typing import Dict, List
  import docker
  import pytest
  from pytest import FixtureRequest
  from pytest_kind import KindCluster
  from jina.logging.logger import JinaLogger
label_desc: Use image node_id 5 for calling a global function with example usage: build_docker_image(image_name, image_name_tag_map) and returns: image