code: def check_type(var, t, name):
      if var.dtype is not t:
          raise TypeError("{} must be {}".format(name, t))
  
imports: import numpy
  import torch
  from torch.autograd import Function, Variable
  from torch.nn import Module
label_desc: Use image node_id 1 for calling a global function with example usage: check_type(var, t, name) without return types