code: def _make_deps_list(package_names: List[str]) -> List[str]:
      """Returns a list of dependencies with their constraints.
  
      Raises: ValueError if a `package_name` is not in the list of known dependencies.
      """
      deps = []
      for package_name in package_names:
          if package_name not in _VERSIONS:
              raise ValueError(
                  f"Package {package_name} is not in the list of known dependencies: "
                  f"{_VERSIONS.keys()}"
              )
          deps.append(_VERSIONS[package_name])
      return deps
  
file_path: model-card-toolkit/model_card_toolkit/dependencies.py
imports: import importlib
  from typing import Dict, List
label_desc: Use image node_id 1 for calling a global function with example usage: _make_deps_list(package_names) and returns: deps