def METHOD_NAME(n1, n2, n3, is_open):
    """
    Callback for triggering to show/hide the stream options dialog
    """
    stream = {}
    #print(f'show_stream_dialog({n1}, {n2}, {n3}, {is_open})')
    #print(dash.ctx.triggered)
    if not dash.ctx.triggered[0]['value']:
        raise PreventUpdate
    if isinstance(dash.ctx.triggered_id, dict) and dash.ctx.triggered_id['type'] == 'card-settings-stream':
        stream = Server.request(f"/streams/{dash.ctx.triggered_id['index']}").json()
    if is_open:
        return False, dash.no_update
    else:
        return True, create_stream_options(stream)