code: def test_load_from_pipeline(dvc, out_type, type_test_func):
      outs = output.load_from_pipeline(
          Stage(dvc),
          [
              "file1",
              "file2",
              {"file3": {"cache": True}},
              {},
              {"file4": {"cache": False}},
              {"file5": {"persist": False}},
              {"file6": {"persist": True, "cache": False}},
          ],
          out_type,
      )
      cached_outs = {"file1", "file2", "file3", "file5"}
      persisted_outs = {"file6"}
      assert len(outs) == 6
  
      for i, out in enumerate(outs, start=1):
          assert isinstance(out, Output)
          assert isinstance(out.fs, LocalFileSystem)
          assert out.def_path == f"file{i}"
          assert out.use_cache == (out.def_path in cached_outs)
          assert out.persist == (out.def_path in persisted_outs)
          assert not out.hash_info
          assert type_test_func(out)
  
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 1 for calling a global function with example usage: test_load_from_pipeline(dvc, out_type, type_test_func) without return types