code: def test_compose_build(arrow_compose_path):
      compose = DockerCompose(arrow_compose_path)
  
      expected_calls = [
          "build conda-cpp",
      ]
      with assert_compose_calls(compose, expected_calls):
          compose.build("conda-cpp")
  
      expected_calls = ["build --no-cache conda-cpp"]
      with assert_compose_calls(compose, expected_calls):
          compose.build("conda-cpp", use_cache=False)
  
      expected_calls = [
          "build conda-cpp",
          "build conda-python",
          "build conda-python-pandas",
      ]
      with assert_compose_calls(compose, expected_calls):
          compose.build("conda-python-pandas")
  
      expected_calls = [
          "build --no-cache conda-cpp",
          "build --no-cache conda-python",
          "build --no-cache conda-python-pandas",
      ]
      with assert_compose_calls(compose, expected_calls):
          compose.build("conda-python-pandas", use_cache=False)
  
      expected_calls = [
          "build conda-cpp",
          "build conda-python",
          "build --no-cache conda-python-pandas",
      ]
      with assert_compose_calls(compose, expected_calls):
          compose.build(
              "conda-python-pandas",
              use_cache=True,
              use_leaf_cache=False,
          )
  
imports: import collections
  import os
  import re
  import subprocess
  from unittest import mock
  import pytest
  from archery.docker import DockerCompose
  from archery.testing import assert_subprocess_calls, override_env, PartialEnv
label_desc: Use image node_id 12 for calling a global function with example usage: test_compose_build(arrow_compose_path) without return types