code: def test_plots_load_from_pipeline(dvc):
      outs = output.load_from_pipeline(
          Stage(dvc),
          [
              "file1",
              {
                  "file2": {
                      "persist": True,
                      "cache": False,
                      "x": 3,
                      "random": "val",
                  }
              },
          ],
          "plots",
      )
      assert isinstance(outs[0], Output)
      assert isinstance(outs[0].fs, LocalFileSystem)
      assert outs[0].use_cache
      assert outs[0].plot is True
      assert not outs[0].metric
      assert not outs[0].persist
  
      assert isinstance(outs[1], Output)
      assert isinstance(outs[1].fs, LocalFileSystem)
      assert not outs[1].use_cache
      assert outs[1].plot == {"x": 3}
      assert not outs[1].metric
      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 7 for calling a global function with example usage: test_plots_load_from_pipeline(dvc) without return types