code: def test_docker_limit_options(run):
      # environment variables and volumes
      args = [
          "run",
          "-e",
          "ARROW_GANDIVA=OFF",
          "-e",
          "ARROW_FLIGHT=ON",
          "--volume",
          "./build:/build",
          "-v",
          "./ccache:/ccache:delegated",
          "-u",
          "root",
          "--resource-limit=github",
          "--no-build",
          "--no-pull",
          "ubuntu-cpp",
      ]
      result = CliRunner().invoke(docker, args)
      assert result.exit_code == 0
      run.assert_called_once_with(
          "ubuntu-cpp",
          command=None,
          env={"ARROW_GANDIVA": "OFF", "ARROW_FLIGHT": "ON"},
          resource_limit="github",
          user="root",
          using_docker=False,
          volumes=(
              "./build:/build",
              "./ccache:/ccache:delegated",
          ),
      )
  
file_path: arrow/dev/archery/archery/docker/tests/test_docker_cli.py
imports: from unittest.mock import patch
  from click.testing import CliRunner
  from archery.docker import DockerCompose
  from archery.docker.cli import docker
label_desc: Use image node_id 3 for calling a global function with example usage: test_docker_limit_options(run) without return types