code: def test_load_from_pipeline_illegal_type(dvc, key):
      stage = Stage(dvc)
      with pytest.raises(
          ValueError, match=f"'{type(key).__name__}' not supported."
      ):
          output.load_from_pipeline(stage, [key], "outs")
      with pytest.raises(
          ValueError,
          match=f"Expected dict for 'key', got: '{type(key).__name__}'",
      ):
          output.load_from_pipeline(stage, [{"key": key}], "outs")
  
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 6 for calling a global function with example usage: test_load_from_pipeline_illegal_type(dvc, key) without return types