code: def test_loadd_from(dvc):
      stage = Stage(dvc)
      deps = loadd_from(stage, [{"params": PARAMS}])
      assert len(deps) == 1
      assert isinstance(deps[0], ParamsDependency)
      assert deps[0].def_path == ParamsDependency.DEFAULT_PARAMS_FILE
      assert deps[0].params == list(PARAMS.keys())
      assert deps[0].hash_info.value == 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 4 for calling a global function with example usage: test_loadd_from(dvc) without return types