code: def check_history(self, t, function_type, return_type):
      func_name = t[0]
      assert func_name == function_type.__name__
      assert isinstance(t[1], return_type)
  
imports: import os
  import time
  import unittest
  import numpy
  import six
  import chainer
  from chainer.backends import cuda
  from chainer import function_hooks
  from chainer import functions
  from chainer.functions.math import basic_math
  from chainer import testing
  from chainer.testing import attr
label_desc: Use image node_id 1 for calling a global function with example usage: check_history(t, function_type, return_type) without return types