code: def check_nan(*values):
      for value in values:
          if isinstance(value, AttrTensor):
              value = value.data
          if isinstance(value, torch.Tensor) and (value != value).any():
              print("NaN detected!!!")
              pdb.set_trace()
  
file_path: deepmatcher/deepmatcher/models/_utils.py
imports: import pdb
  import six
  import deepmatcher
  import torch
  from ..batch import AttrTensor
label_desc: Use image node_id 3 for calling a global function with example usage: check_nan() without return types