code: def read_lock_file(file=LOCK_FILE):
      with open(file, encoding="utf-8") as f:
          data = parse_yaml_for_update(f.read(), file)
      assert isinstance(data, OrderedDict)
      return data
  
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 1 for calling a global function with example usage: read_lock_file(file) and returns: data