Implement a tooltip custom component and run it to show the UI. Asked in the Round 1 stage.
Write a Python function that returns a JSON-like render tree for a tooltip component. The function must accept trigger, content, placement, and optional visible, and return an object with the tooltip type, normalized props, and accessibility state.
trigger: string, the element label that opens the tooltipcontent: string, tooltip textplacement: string, one of top, bottom, left, rightvisible: boolean, optional, defaults to FalseReturn a dictionary shaped like a tooltip component tree, with invalid placement normalized to top.
def render_tooltip(trigger, content, placement, visible=False):