code: def all_equal(obj1, obj2):
      if isinstance(obj1, tuple):
          return all(
              all_equal(el1, el2) for el1, el2 in zip(obj1, obj2)
          )
      assert isinstance(obj1, torch.Tensor)
      return (obj1 == obj2).all()
  
imports: import pytest
  from toolz import valmap
  import torch
  from gluonts.torch.model.deepar import DeepARModel
  from gluonts.torch.model.tft import TemporalFusionTransformerModel
  from gluonts.torch.model.simple_feedforward import SimpleFeedForwardModel
label_desc: Use image node_id 1 for calling a global function with example usage: all_equal(obj1, obj2) and returns: unknown, all