code: def test_foreach_overwriting_item_in_list(
      tmp_dir, dvc, caplog, global_data, where
  ):
      context = Context(global_data)
      definition = make_foreach_def(
          tmp_dir, "build", {"model1": 10, "model2": 5}, {}, context
      )
      with caplog.at_level(logging.WARNING, logger="dvc.parsing"):
          definition.resolve_all()
  
      assert caplog.messages == [
          f"{where} already specified, "
          "will be overwritten for stages generated from 'build'"
      ]
  
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 13 for calling a global function with example usage: test_foreach_overwriting_item_in_list(tmp_dir, dvc, caplog, global_data, where) without return types