code: def _call_func(impl, args, kw):
      try:
          result = impl(*args, **kw)
          error = None
          tb = None
      except Exception as e:
          result = None
          error = e
          tb = traceback.format_exc()
  
      return result, error, tb
  
imports: import functools
  import traceback
  import warnings
  import numpy
  import pytest
  import chainerx
  from chainerx.testing import array
label_desc: Use image node_id 2 for calling a global function with example usage: _call_func(impl, args, kw) and returns: result,  error,  tb