code: def content_callback(app, flavor, layout):
      kwargs = {}
      if flavor["global"]:
          kwargs["prevent_initial_call"] = False
  
      if flavor["content"]:
          app.layout = html.Div(id="content")
  
          @app.callback(
              Output("content", "children"),
              [Input("content", "style")],
              **kwargs,
          )
          def set_content(_):
              return layout
  
      else:
          app.layout = layout
  
file_path: dash/tests/integration/callbacks/test_prevent_initial.py
imports: import json
  import pytest
  from flaky import flaky
  from dash import Dash, Input, Output, MATCH, html
  from dash.exceptions import PreventUpdate
label_desc: Use image node_id 2 for calling a global function with example usage: content_callback(app, flavor, layout) and returns: layout