code: def test_point_picking(left_clicking):
      picked = []
  
      def callback(picked_point):
          picked.append(picked_point)
  
      sphere = pv.Sphere()
      pl = pv.Plotter(
          window_size=(100, 100),
      )
      pl.add_mesh(sphere)
      pl.enable_point_picking(
          callback=callback,
          show_message=True,
          left_clicking=left_clicking,
      )
      # must show to activate the interactive renderer (for left_clicking)
      pl.show(auto_close=False)
  
      # simulate the pick
      width, height = pl.window_size
  
      if left_clicking:
          pl.iren._mouse_left_button_click(width // 2, height // 2)
      else:
          pl.iren._mouse_right_button_click(width // 2, height // 2)
  
      assert picked
  
imports: import os
  import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista.plotting.errors import PyVistaPickingError
label_desc: Use image node_id 9 for calling a global function with example usage: test_point_picking(left_clicking) without return types