code: def test_ddvl001_fail_handler_fails_correctly(val):
      if isinstance(val, list):
          outputs = [
              Output(f"id{i}", "children") for i in range(len(val))
          ]
      else:
          outputs = Output("id", "children")
  
      with pytest.raises(InvalidCallbackReturnValue):
          fail_callback_output(val, outputs)
  
imports: import pytest
  from dash import Output
  from dash.html import Div
  from dash.exceptions import InvalidCallbackReturnValue, DuplicateCallback
  from dash._validate import fail_callback_output, validate_duplicate_output
label_desc: Use image node_id 1 for calling a global function with example usage: test_ddvl001_fail_handler_fails_correctly(val) without return types