code: def _make_global_functions():
      """
      Make global functions wrapping each compute function.
  
      Note that some of the automatically-generated wrappers may be overridden
      by custom versions below.
      """
      g = globals()
      reg = function_registry()
  
      # Avoid clashes with Python keywords
      rewrites = {"and": "and_", "or": "or_"}
  
      for cpp_name in reg.list_functions():
          name = rewrites.get(cpp_name, cpp_name)
          func = reg.get_function(cpp_name)
          if func.kind == "hash_aggregate":
              # Hash aggregate functions are not callable,
              # so let's not expose them at module level.
              continue
          if func.kind == "scalar_aggregate" and func.arity == 0:
              # Nullary scalar aggregate functions are not callable
              # directly so let's not expose them at module level.
              continue
          assert name not in g, name
          g[cpp_name] = g[name] = _wrap_function(name, func)
  
imports: from pyarrow._compute import Function, FunctionOptions, FunctionRegistry, HashAggregateFunction, HashAggregateKernel, Kernel, ScalarAggregateFunction, ScalarAggregateKernel, ScalarFunction, ScalarKernel, VectorFunction, VectorKernel, ArraySortOptions, AssumeTimezoneOptions, CastOptions, CountOptions, CumulativeOptions, CumulativeSumOptions, DayOfWeekOptions, DictionaryEncodeOptions, RunEndEncodeOptions, ElementWiseAggregateOptions, ExtractRegexOptions, FilterOptions, IndexOptions, JoinOptions, ListSliceOptions, MakeStructOptions, MapLookupOptions, MatchSubstringOptions, ModeOptions, NullOptions, PadOptions, PairwiseOptions, PartitionNthOptions, QuantileOptions, RandomOptions, RankOptions, ReplaceSliceOptions, ReplaceSubstringOptions, RoundBinaryOptions, RoundOptions, RoundTemporalOptions, RoundToMultipleOptions, ScalarAggregateOptions, SelectKOptions, SetLookupOptions, SliceOptions, SortOptions, SplitOptions, SplitPatternOptions, StrftimeOptions, StrptimeOptions, StructFieldOptions, TakeOptions, TDigestOptions, TrimOptions, Utf8NormalizeOptions, VarianceOptions, WeekOptions, call_function, function_registry, get_function, list_functions, call_tabular_function, register_scalar_function, register_tabular_function, register_aggregate_function, register_vector_function, UdfContext, Expression
  from collections import namedtuple
  import inspect
  from textwrap import dedent
  import warnings
  import pyarrow
  from pyarrow import _compute_docstrings
  from pyarrow.vendored import docscrape
label_desc: Use image node_id 9 for calling a global function with example usage: _make_global_functions() without return types