code: def test_ddv002_allow_duplicate_validation(
      output,
      prevent_initial_call,
      config_prevent_initial_call,
      expect_error,
  ):
      if expect_error:
          with pytest.raises(DuplicateCallback):
              validate_duplicate_output(
                  output,
                  prevent_initial_call,
                  config_prevent_initial_call,
              )
      else:
          validate_duplicate_output(
              output, prevent_initial_call, config_prevent_initial_call
          )
  
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 2 for calling a global function with example usage: test_ddv002_allow_duplicate_validation(output, prevent_initial_call, config_prevent_initial_call, expect_error) without return types