code: def clear_pages_state():
      init_pages_state()
      yield
      init_pages_state()
  
imports: import os
  import pytest
  import dash
  from dash._configs import DASH_ENV_VARS
label_desc: Use image node_id 2 for calling a global function with example usage: clear_pages_state() without return types