code: def test_remove_missing_keys(changes, expected):
      params = {
          "foo": {"bar": 1, "baz": 2},
          "goo": {"bag": 3},
          "lorem": False,
      }
      removed = remove_missing_keys(params, changes)
      assert removed == expected == params
      assert params is removed  # references should be preserved
      assert is_serializable(params)
  
file_path: dvc/tests/unit/utils/test_collections.py
imports: import json
  import pytest
  from dvc.utils.collections import apply_diff, merge_dicts, remove_missing_keys, to_omegaconf
  from dvc.utils.serialize import dumps_yaml
label_desc: Use image node_id 7 for calling a global function with example usage: test_remove_missing_keys(changes, expected) without return types