code: def make_foreach_def(
      wdir, name, foreach_data, do_data=None, context=None
  ) -> ForeachDefinition:
      return ForeachDefinition(
          DataResolver(wdir.dvc, wdir.fs_path, {}),
          context or Context(),
          name,
          {"foreach": foreach_data, "do": do_data or {}},
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: make_foreach_def(wdir, name, foreach_data, do_data, context) and returns: ForeachDefinition