code: def _is_type_tensor(tensor, types):
      """Checks whether the elements of the input tensor are of a given type"""
      if is_tensor(tensor):
          if any(tensor.dtype == type_ for type_ in types):
              return True
      return False
  
imports: import torch
  from crypten.cuda import CUDALongTensor
label_desc: Use image node_id 1 for calling a global function with example usage: _is_type_tensor(tensor, types) and returns: False, True