code: def test_base_state_plugin():
      class DummyStatePlugin(BaseStatePlugin):
          def should_update_app(self, deep_diff):
              super().should_update_app(deep_diff)
  
          def get_context(self):
              super().get_context()
  
          def render_non_authorized(self):
              super().render_non_authorized()
  
      plugin = DummyStatePlugin()
      plugin.should_update_app(None)
      plugin.get_context()
      plugin.render_non_authorized()
  
      plugin = AppStatePlugin()
      plugin.should_update_app(None)
      plugin.get_context()
      plugin.render_non_authorized()
  
imports: from functools import partial
  from unittest import mock
  import pytest
  from lightning.app import LightningApp, LightningFlow, LightningWork
  from lightning.app.core.flow import _RootFlow
  from lightning.app.frontend import StaticWebFrontend
  from lightning.app.utilities.app_helpers import AppStatePlugin, BaseStatePlugin, InMemoryStateStore, StateStore, _is_headless, _MagicMockJsonSerializable, is_overridden, is_static_method
  from lightning.app.utilities.exceptions import LightningAppStateException
label_desc: Use image node_id 4 for calling a global function with example usage: test_base_state_plugin() without return types