code: def _get_type_info(param, dtype, types):
      if param.dtype is not None:
          return param.ctype
      # Template type -> map to actual output type
      ctype = cupy._core._scalar.get_typename(dtype)
      types.setdefault(param.ctype, ctype)
      return ctype
  
file_path: cupy/cupyx/scipy/ndimage/_filters_generic.py
imports: import cupy
  from cupy_backends.cuda.api import runtime
  from cupy import _util
  from cupyx.scipy.ndimage import _filters_core
label_desc: Use image node_id 4 for calling a global function with example usage: _get_type_info(param, dtype, types) and returns: ctype, param