code: def validate_arrow_sources(ctx, param, src):
      """
      Ensure a directory contains Arrow cpp sources.
      """
      try:
          return ArrowSources.find(src)
      except InvalidArrowSource as e:
          raise click.BadParameter(str(e))
  
file_path: arrow/dev/archery/archery/utils/cli.py
imports: import importlib
  import click
  from .source import ArrowSources, InvalidArrowSource
label_desc: Use image node_id 1 for calling a global function with example usage: validate_arrow_sources(ctx, param, src) and returns: ArrowSources