code: def wrong_output_dtype_agg_func_fixture(scope="session"):
      def func(ctx, x):
          return pa.scalar(len(x), pa.int32())
  
      func_name = "y=wrong_output_dtype(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 4 for calling a global function with example usage: wrong_output_dtype_agg_func_fixture(scope) and returns: func,  func_name, pa