code: def test_method_exception():
      """The PanelFrontend does not support entry_point being a method and should raise an Exception."""
  
      class _DummyClass:
          def _render_fn(self):
              pass
  
      with pytest.raises(TypeError, match="being a method"):
          PanelFrontend(entry_point=_DummyClass()._render_fn)
  
imports: import os
  import runpy
  import sys
  from unittest import mock
  from unittest.mock import Mock
  import pytest
  from lightning.app import LightningFlow
  from lightning.app.frontend.panel import PanelFrontend, panel_serve_render_fn
  from lightning.app.frontend.panel.panel_frontend import _has_panel_autoreload
  from lightning.app.utilities.state import AppState
label_desc: Use image node_id 6 for calling a global function with example usage: test_method_exception() without return types