code: def transpile_function_wrapper(func):
      def new_func(node, *args, **kwargs):
          try:
              return func(node, *args, **kwargs)
          except _JitCompileError:
              raise
          except Exception as e:
              raise _JitCompileError(e, node)
  
      return new_func
  
imports: import ast
  import collections
  import inspect
  import linecache
  import numbers
  import re
  import sys
  from typing import Any, Dict, List, Optional, Sequence, Tuple, TypeVar, Union
  import warnings
  import types
  import numpy
  from cupy_backends.cuda.api import runtime
  from cupy._core._codeblock import CodeBlock, _CodeType
  from cupy._core import _kernel
  from cupy._core._dtype import _raise_if_invalid_cast
  from cupyx import jit
  from cupyx.jit import _cuda_types
  from cupyx.jit import _cuda_typerules
  from cupyx.jit import _internal_types
  from cupyx.jit._internal_types import Data
  from cupyx.jit._internal_types import Constant
  from cupyx.jit import _builtin_funcs
  from cupyx.jit import _interface
label_desc: Use image node_id 1 for calling a global function with example usage: transpile_function_wrapper(func) and returns: new_func, func