code: def assert_docker_calls(compose, expected_args):
      base_command = ["docker"]
      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)
  
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 5 for calling a global function with example usage: assert_docker_calls(compose, expected_args) and returns: assert_subprocess_calls