code: def linking_check_dependencies(obj, allowed, disallowed, paths):
      from .linking import (
          check_dynamic_library_dependencies,
          DependencyError,
      )
  
      allowed, disallowed = set(allowed), set(disallowed)
      try:
          for path in map(pathlib.Path, paths):
              check_dynamic_library_dependencies(
                  path, allowed=allowed, disallowed=disallowed
              )
      except DependencyError as e:
          raise click.ClickException(str(e))
  
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 22 for calling a global function with example usage: linking_check_dependencies(obj, allowed, disallowed, paths) without return types