code: def test_compose_run_with_resource_limits(arrow_compose_path):
      expected_calls = [
          format_run(
              [
                  "--cpuset-cpus=0,1",
                  "--memory=7g",
                  "--memory-swap=7g",
                  "org/conda-cpp",
              ]
          ),
      ]
      compose = DockerCompose(arrow_compose_path)
      with assert_docker_calls(compose, expected_calls):
          compose.run("conda-cpp", resource_limit="github")
  
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 16 for calling a global function with example usage: test_compose_run_with_resource_limits(arrow_compose_path) without return types