code: def test_markers_picking():
      markers = Markers(
          pos=np.array([[-0.5, -0.5], [0.5, 0.5]]),
          size=5,
      )
      filter = MarkerPickingFilter()
      markers.attach(filter)
  
      with TestingCanvas(size=(125, 125)) as c:
          view = c.central_widget.add_view(camera="panzoom")
          view.camera.rect = (-1, -1, 2, 2)
          view.add(markers)
  
          filter.enabled = True
          markers.update_gl_state(blend=False)
          picking_render = c.render(bgcolor=(0, 0, 0, 0), alpha=True)
          ids = picking_render.view(np.uint32)
  
          assert ids[3 * 125 // 4, 125 // 4] == 1
          assert ids[125 // 4, 3 * 125 // 4] == 2
  
file_path: vispy/vispy/visuals/filters/tests/test_primitive_picking_filters.py
imports: import numpy
  from vispy.geometry import create_plane
  from vispy.scene.visuals import Markers, Mesh
  from vispy.testing import requires_application, TestingCanvas
  from vispy.visuals.filters import FacePickingFilter, MarkerPickingFilter
label_desc: Use image node_id 4 for calling a global function with example usage: test_markers_picking() without return types