code: def take(data, indices, *, boundscheck=True, memory_pool=None):
      """
      Select values (or records) from array- or table-like data given integer
      selection indices.
  
      The result will be of the same type(s) as the input, with elements taken
      from the input array (or record batch / table fields) at the given
      indices. If an index is null then the corresponding value in the output
      will be null.
  
      Parameters
      ----------
      data : Array, ChunkedArray, RecordBatch, or Table
      indices : Array, ChunkedArray
          Must be of integer type
      boundscheck : boolean, default True
          Whether to boundscheck the indices. If False and there is an out of
          bounds index, will likely cause the process to crash.
      memory_pool : MemoryPool, optional
          If not passed, will allocate memory from the default memory pool.
  
      Returns
      -------
      result : depends on inputs
          Selected values for the given indices
  
      Examples
      --------
      >>> import pyarrow as pa
      >>> arr = pa.array(["a", "b", "c", None, "e", "f"])
      >>> indices = pa.array([0, None, 4, 3])
      >>> arr.take(indices)
      <pyarrow.lib.StringArray object at ...>
      [
        "a",
        null,
        "e",
        null
      ]
      """
      options = TakeOptions(boundscheck=boundscheck)
      return call_function(
          "take", [data, indices], options, memory_pool
      )
  
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 12 for calling a global function with example usage: take(data, indices) and returns: call_function