code: def test_load_from_pipeline_error_on_typ(dvc, typ):
      with pytest.raises(
          ValueError,
          match=f"'{typ}' key is not allowed for pipeline files.",
      ):
          output.load_from_pipeline(Stage(dvc), ["file1"], typ)
  
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 5 for calling a global function with example usage: test_load_from_pipeline_error_on_typ(dvc, typ) without return types