code: def lint(ctx, src, fix, iwyu_all, **checks):
      if checks.pop("all"):
          # "--all" is given => enable all non-selected checks
          for k, v in checks.items():
              if v is None:
                  checks[k] = True
      if not any(checks.values()):
          raise click.UsageError(
              "Need to enable at least one lint check (try --help)"
          )
      try:
          linter(src, fix, iwyu_all=iwyu_all, **checks)
      except LintValidationException:
          sys.exit(1)
  
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 7 for calling a global function with example usage: lint(ctx, src, fix, iwyu_all) without return types