code: def test_load_from_pipeline_accumulates_flag(dvc):
      outs = output.load_from_pipeline(
          Stage(dvc),
          [
              "file1",
              {"file2": {"cache": False}},
              {"file1": {"persist": False}},
              {"file2": {"persist": True}},
          ],
          "outs",
      )
      for out in outs:
          assert isinstance(out, Output)
          assert isinstance(out.fs, LocalFileSystem)
          assert not out.plot
          assert not out.metric
          assert not out.hash_info
  
      assert outs[0].use_cache
      assert not outs[0].persist
      assert not outs[1].use_cache
      assert outs[1].persist
  
file_path: dvc/tests/unit/output/test_load.py
imports: import pytest
  from dvc_s3 import S3FileSystem
  from dvc import output
  from dvc.fs import LocalFileSystem
  from dvc.output import Output
  from dvc.stage import Stage
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_from_pipeline_accumulates_flag(dvc) without return types