code: def test_layout_invalid_plugin(self):
      with patch("IPython.display.display"):
          df = pd.DataFrame([1, 2], columns=["1"])
          PerspectiveWidget(df, plugin=Plugin.YBAR)
          PerspectiveWidget(df, plugin="Y Line")
          try:
              PerspectiveWidget(df, plugin="test")
              assert False
          except PerspectiveError:
              pass
  
          try:
              PerspectiveWidget(df, plugin=5)
              assert False
          except PerspectiveError:
              pass
  
imports: import pandas
  from unittest.mock import patch
  from perspective import PerspectiveWidget, Plugin, PerspectiveError
label_desc: Use image node_id 1 for calling the TestLayout obj's underlying member method code with example usage: obj.test_layout_invalid_plugin() without return types