code: def validate_duplicate_output(
      output, prevent_initial_call, config_prevent_initial_call
  ):
      if "initial_duplicate" in (
          prevent_initial_call,
          config_prevent_initial_call,
      ):
          return
  
      def _valid(out):
          if (
              out.allow_duplicate
              and not prevent_initial_call
              and not config_prevent_initial_call
          ):
              raise exceptions.DuplicateCallback(
                  "allow_duplicate requires prevent_initial_call to be True. The order of the call is not"
                  " guaranteed to be the same on every page load. "
                  "To enable duplicate callback with initial call, set prevent_initial_call='initial_duplicate' "
                  " or globally in the config prevent_initial_callbacks='initial_duplicate'"
              )
  
      if isinstance(output, (list, tuple)):
          for o in output:
              _valid(o)
  
          return
  
      _valid(output)
  
imports: from collections.abc import MutableSequence
  import re
  from textwrap import dedent
  from keyword import iskeyword
  import flask
  from ._grouping import grouping_len, map_grouping
  from .development.base_component import Component
  from .None import exceptions
  from ._utils import patch_collections_abc, stringify_id, to_json, coerce_to_list, clean_property_name
label_desc: Use image node_id 21 for calling a global function with example usage: validate_duplicate_output(output, prevent_initial_call, config_prevent_initial_call) without return types