code: def test_get_hash_missing_config(dvc):
      dep = ParamsDependency(Stage(dvc), None, ["foo"])
      with pytest.raises(MissingParamsError):
          dep.get_hash()
  
imports: import pytest
  from dvc.dependency import ParamsDependency, loadd_from, loads_params
  from dvc.dependency.param import BadParamFileError, MissingParamsError
  from dvc.stage import Stage
  from dvc.utils.serialize import dump_toml, dump_yaml, load_yaml
label_desc: Use image node_id 15 for calling a global function with example usage: test_get_hash_missing_config(dvc) without return types