code: def docker_build(
      obj,
      image,
      *,
      force_pull,
      using_docker_cli,
      using_docker_buildx,
      use_cache,
      use_leaf_cache,
  ):
      """
      Execute docker-compose builds.
      """
      compose = obj["compose"]
  
      using_docker_cli |= using_docker_buildx
      try:
          if force_pull:
              compose.pull(
                  image,
                  pull_leaf=use_leaf_cache,
                  using_docker=using_docker_cli,
              )
          compose.build(
              image,
              use_cache=use_cache,
              use_leaf_cache=use_leaf_cache,
              using_docker=using_docker_cli,
              using_buildx=using_docker_buildx,
              pull_parents=force_pull,
          )
      except UndefinedImage as e:
          raise click.ClickException(
              "There is no service/image defined in docker-compose.yml with "
              "name: {}".format(str(e))
          )
      except RuntimeError as e:
          raise click.ClickException(str(e))
  
file_path: arrow/dev/archery/archery/docker/cli.py
imports: import os
  import sys
  import click
  from ..utils.cli import validate_arrow_sources
  from .core import DockerCompose, UndefinedImage
label_desc: Use image node_id 5 for calling a global function with example usage: docker_build(obj, image) without return types