code: def _get_error_func(error, *args, **kwargs):
      def raise_error(*_args, **_kwargs):
          raise error(*args, **kwargs)
  
      return raise_error
  
file_path: cupy/tests/cupyx_tests/test_runtime.py
imports: import unittest
  from unittest import mock
  import cupy
  import cupyx
  from cupy.cuda import cudnn
label_desc: Use image node_id 1 for calling a global function with example usage: _get_error_func(error) and returns: raise_error