code: def assert_type(
      instance, the_class, instance_var_name, is_type_result
  ):
      assert is_type(instance, the_class) == is_type_result, (
          instance_var_name
          + " should be an instance of "
          + the_class.__name__
          + " but is "
          + str(instance.__class__)
      )
      return True
  
imports: from __future__ import division
  from __future__ import print_function
  from __future__ import absolute_import
  import sys
  import os
  import os.path
  import numpy
  from collections import namedtuple
  from collections import OrderedDict
  import json
  import deeplift
  import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: assert_type(instance, the_class, instance_var_name, is_type_result) and returns: True