code: def exception_agg_func_fixture():
      def func(ctx, x):
          raise RuntimeError("Oops")
          return pa.scalar(len(x))
  
      func_name = "y=exception_len(x)"
      func_doc = empty_udf_doc
  
      pc.register_aggregate_function(
          func,
          func_name,
          func_doc,
          {
              "x": pa.int64(),
          },
          pa.int64(),
      )
      return func, func_name
  
imports: import pytest
  import numpy
  import pyarrow
  from pyarrow import compute
label_desc: Use image node_id 3 for calling a global function with example usage: exception_agg_func_fixture() and returns: func,  func_name, pa