code: def assert_equal(actual, desired, *args, **kwargs):
      def _tensor_to_numpy(x):
          if T.is_tensor(x):
              x = T.to_numpy(x)
              return x[0] if x.shape == (1,) else x
          return x
  
      np.testing.assert_equal(
          _tensor_to_numpy(actual),
          _tensor_to_numpy(desired),
          *args,
          **kwargs,
      )
  
file_path: tensorly/tensorly/testing.py
imports: import sys
  from inspect import getfullargspec
  import numpy
  from tensorly import backend
label_desc: Use image node_id 4 for calling a global function with example usage: assert_equal(actual, desired) and returns: x, unknown