code: def test_rdps001_local_reload(dash_duo):
      app = reloadable_app()
      dash_duo.start_server(app)
      dash_duo.wait_for_text_to_equal(
          "#out", "names: [a, b]; hidden: []"
      )
      check_table_names(dash_duo, ["a", "b"])
  
      rename_and_hide(dash_duo)
      # callback output
      dash_duo.wait_for_text_to_equal(
          "#out", "names: [{}, b]; hidden: [c1]".format(NEW_NAME)
      )
      check_table_names(dash_duo, [NEW_NAME])
  
      dash_duo.wait_for_page()
      # callback gets persisted values, not the values provided with the layout
      dash_duo.wait_for_text_to_equal(
          "#out", "names: [{}, b]; hidden: [c1]".format(NEW_NAME)
      )
      check_table_names(dash_duo, [NEW_NAME])
  
      # new persistence reverts
      app.persistence.value = 2
      dash_duo.wait_for_page()
      check_table_names(dash_duo, ["a", "b"])
      rename_and_hide(dash_duo, 1, "two", 0)
      dash_duo.wait_for_text_to_equal(
          "#out", "names: [a, two]; hidden: [c0]"
      )
      check_table_names(dash_duo, ["two"])
  
      # put back the old persistence, get the old values
      app.persistence.value = 1
      dash_duo.wait_for_page()
      dash_duo.wait_for_text_to_equal(
          "#out", "names: [{}, b]; hidden: [c1]".format(NEW_NAME)
      )
      check_table_names(dash_duo, [NEW_NAME])
  
      # falsy persistence disables it
      app.persistence.value = 0
      dash_duo.wait_for_page()
      check_table_names(dash_duo, ["a", "b"])
      rename_and_hide(dash_duo)
      check_table_names(dash_duo, [NEW_NAME])
      dash_duo.wait_for_page()
      check_table_names(dash_duo, ["a", "b"])
  
      # falsy to previous truthy also brings the values
      app.persistence.value = 2
      dash_duo.wait_for_page()
      dash_duo.wait_for_text_to_equal(
          "#out", "names: [a, two]; hidden: [c0]"
      )
      check_table_names(dash_duo, ["two"])
  
imports: from multiprocessing import Value
  import pytest
  import time
  from selenium.webdriver.common.keys import Keys
  import dash
  from dash import Dash, Input, Output, State, MATCH, dcc, html, dash_table
  from dash_test_components import MyPersistedComponent
  from dash_test_components import MyPersistedComponentNested
label_desc: Use image node_id 7 for calling a global function with example usage: test_rdps001_local_reload(dash_duo) without return types