code: def test_ViewBox_setMenuEnabled():
      init_viewbox()
      vb.setMenuEnabled(True)
      assert vb.menu is not None
      vb.setMenuEnabled(False)
      assert vb.menu is None
  
imports: import pytest
  import pyqtgraph
label_desc: Use image node_id 4 for calling a global function with example usage: test_ViewBox_setMenuEnabled() without return types