code: def tensor_equal(self, x, y):
      if not isinstance(x, torch.Tensor):
          return x == y
      return torch.allclose(
          x.float().nan_to_num(42),
          y.float().nan_to_num(42),
          rtol=1e-3,
          atol=1e-4,
      )
  
file_path: nni/test/algo/nas/graph_converter/convert_mixin.py
imports: import unittest
  import torch
  from nni.nas.space.pytorch.graph import PytorchGraphModelSpace
  from nni.nas.utils import original_state_dict_hooks
label_desc: Use image node_id 1 for calling the ConvertMixin obj's underlying member method code with example usage: obj.tensor_equal(x, y) and returns: torch, unknown