code: def cpp_toolchain_options(cmd):
      options = [
          click.option(
              "--cc", metavar="<compiler>", help="C compiler."
          ),
          click.option(
              "--cxx", metavar="<compiler>", help="C++ compiler."
          ),
          click.option("--cxx-flags", help="C++ compiler flags."),
          click.option(
              "--cpp-package-prefix",
              help=(
                  "Value to pass for ARROW_PACKAGE_PREFIX and "
                  "use ARROW_DEPENDENCY_SOURCE=SYSTEM"
              ),
          ),
      ]
      return _apply_options(cmd, options)
  
imports: from collections import namedtuple
  from io import StringIO
  import click
  import json
  import logging
  import os
  import pathlib
  import sys
  from .benchmark.codec import JsonEncoder
  from .benchmark.compare import RunnerComparator, DEFAULT_THRESHOLD
  from .benchmark.runner import CppBenchmarkRunner, JavaBenchmarkRunner
  from .compat import _import_pandas
  from .lang.cpp import CppCMakeDefinition, CppConfiguration
  from .utils.cli import ArrowBool, validate_arrow_sources, add_optional_command
  from .utils.lint import linter, python_numpydoc, LintValidationException
  from .utils.logger import logger, ctx
  from .utils.source import ArrowSources
  from .utils.tmpdir import tmpdir
label_desc: Use image node_id 2 for calling a global function with example usage: cpp_toolchain_options(cmd) and returns: _apply_options