code: def assert_eq_lockfile(previous, new):
      for content in (previous, new):
          assert isinstance(content, OrderedDict)
  
      # if they both are OrderedDict, then `==` will also check for order
      assert previous == new
  
file_path: dvc/tests/func/test_lockfile.py
imports: from collections import OrderedDict
  from operator import itemgetter
  from dvc.dvcfile import LOCK_FILE
  from dvc.stage.utils import split_params_deps
  from dvc.utils.fs import remove
  from dvc.utils.serialize import dumps_yaml, parse_yaml_for_update
  from tests.func.test_run import supported_params
label_desc: Use image node_id 2 for calling a global function with example usage: assert_eq_lockfile(previous, new) without return types