code: def assert_compose_calls(compose, expected_args, env=mock.ANY):
      base_command = [
          "docker-compose",
          "--file",
          str(compose.config.path),
      ]
      expected_commands = []
      for args in expected_args:
          if isinstance(args, str):
              args = re.split(r"\s", args)
          expected_commands.append(base_command + args)
      return assert_subprocess_calls(
          expected_commands, check=True, env=env
      )
  
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 6 for calling a global function with example usage: assert_compose_calls(compose, expected_args, env) and returns: assert_subprocess_calls