code: def outputs_equal(actual, expected):
      actual, expected = list(actual), list(expected)
  
      def sort_fn(output):
          return output.fspath
  
      assert len(actual) == len(expected)
      pairs = zip(
          sorted(actual, key=sort_fn), sorted(expected, key=sort_fn)
      )
      assert all(
          actual.fspath == expected.fspath for actual, expected in pairs
      )
      return True
  
imports: import os
  from itertools import chain
  import pytest
  from pygtrie import Trie
  from dvc.repo.index import Index
  from dvc.stage import Stage
label_desc: Use image node_id 3 for calling a global function with example usage: outputs_equal(actual, expected) and returns: True, output