def METHOD_NAME(state, use_persistent=False):
    if use_persistent:
        state = shared.persistent_interface_state
    elements = list_interface_input_elements()
    if len(state) == 0:
        return [gr.update() for k in elements]  # Dummy, do nothing
    else:
        return [state[k] if k in state else gr.update() for k in elements]