code: def test_read_params_unsupported_format(tmp_dir, dvc):
      tmp_dir.gen(DEFAULT_PARAMS_FILE, b"\0\1\2\3\4\5\6\7")
      dep = ParamsDependency(Stage(dvc), None, ["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 8 for calling a global function with example usage: test_read_params_unsupported_format(tmp_dir, dvc) without return types