code: def test_foreach_data_key_does_not_exists(tmp_dir, dvc, key):
      definition = make_foreach_def(tmp_dir, "build", embrace(key), {})
      with pytest.raises(ResolveError) as exc_info:
          definition.resolve_all()
      assert (
          str(exc_info.value)
          == "failed to parse 'stages.build.foreach' in 'dvc.yaml': "
          f"Could not find '{key}'"
      )
  
imports: import logging
  import re
  import pytest
  from dvc.parsing import ResolveError
  from dvc.parsing.context import Context
  from dvc.parsing.interpolate import embrace
  from dvc.utils.humanize import join
  from .None import make_entry_definition, make_foreach_def
label_desc: Use image node_id 11 for calling a global function with example usage: test_foreach_data_key_does_not_exists(tmp_dir, dvc, key) without return types