code: def test_read_params_wrong_suffix(tmp_dir, dvc):
      parameters_file = "parameters.toml"
      dump_yaml(
          parameters_file, {"some": {"path": {"foo": ["val1", "val2"]}}}
      )
      dep = ParamsDependency(
          Stage(dvc), parameters_file, ["some.path.foo"]
      )
      with pytest.raises(BadParamFileError):
          dep.read_params()
  
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 11 for calling a global function with example usage: test_read_params_wrong_suffix(tmp_dir, dvc) without return types