code: def raising_func_fixture():
      """
      Register a scalar function which raises a custom exception.
      """
  
      def raising_func(ctx):
          raise MyError("error raised by scalar UDF")
  
      func_name = "test_raise"
      doc = {"summary": "raising function", "description": ""}
      pc.register_scalar_function(
          raising_func, func_name, doc, {}, pa.int64()
      )
      return raising_func, func_name
  
imports: import pytest
  import numpy
  import pyarrow
  from pyarrow import compute
label_desc: Use image node_id 13 for calling a global function with example usage: raising_func_fixture() and returns: raising_func,  func_name