code: def test_mouse_event(
      mouse_event_type,
      button,
      buttons,
      expected_button,
      expected_buttons,
  ):
      mev = MouseEvent(
          type=mouse_event_type, button=button, buttons=buttons
      )
      assert mev.buttons == expected_buttons
      assert mev.button == expected_button
  
file_path: vispy/vispy/app/tests/test_canvas.py
imports: from vispy.app import Canvas, MouseEvent
  from vispy.visuals import ImageVisual
  from vispy.testing import requires_application
  from vispy.visuals.transforms import STTransform
  from vispy import gloo
  import numpy
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_mouse_event(mouse_event_type, button, buttons, expected_button, expected_buttons) without return types