code: def _match_outputs(ref, tgt):
      assert type(ref) == type(tgt)
      if type(ref) in [list, tuple]:
          for x, y in zip(ref, tgt):
              _match_outputs(x, y)
      elif not torch.is_tensor(ref):
          assert ref == tgt
      elif ref.is_floating_point():
          assert torch.allclose(ref, tgt)
      else:
          assert torch.equal(ref, tgt)
  
imports: import pytest
  import torch
  import deepspeed
  from deepspeed.accelerator import get_accelerator
  from copy import deepcopy
  from unit.common import DistributedTest
label_desc: Use image node_id 3 for calling a global function with example usage: _match_outputs(ref, tgt) without return types