code: def test_compose_error(arrow_compose_path):
      compose = DockerCompose(
          arrow_compose_path,
          params=dict(PYTHON="3.8", PANDAS="upstream_devel"),
      )
  
      error = subprocess.CalledProcessError(99, [])
      with mock.patch("subprocess.run", side_effect=error):
          with pytest.raises(RuntimeError) as exc:
              compose.run("conda-cpp")
  
      exception_message = str(exc.value)
      assert "exited with a non-zero exit code 99" in exception_message
      assert "PANDAS: latest" in exception_message
      assert "export PANDAS=upstream_devel" in exception_message
  
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 18 for calling a global function with example usage: test_compose_error(arrow_compose_path) without return types