code: def _get_module_func(module, func_name, *template_args):
      def _get_typename(dtype):
          typename = get_typename(dtype)
          if dtype.kind == "c":
              typename = "thrust::" + typename
          return typename
  
      args_dtypes = [_get_typename(arg.dtype) for arg in template_args]
      template = ", ".join(args_dtypes)
      kernel_name = (
          f"{func_name}<{template}>" if template_args else func_name
      )
      kernel = module.get_function(kernel_name)
      return kernel
  
imports: import math
  import cupy
  from cupy._core import internal
  from cupy._core._scalar import get_typename
  from cupy_backends.cuda.api import runtime
  from cupyx.scipy import special
  from cupyx.scipy.interpolate._bspline import BSpline, _get_dtype
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _get_module_func(module, func_name) and returns: kernel, typename