code: def test_cell_picking_interactive_subplot():
      n_cells = []
  
      def callback(picked_cells):
          n_cells.append(picked_cells.n_cells)
  
      pl = pv.Plotter(shape=(1, 2))
      pl.add_mesh(pv.Sphere())  # TRIANGLE cells
      pl.enable_cell_picking(callback=callback)
      pl.subplot(0, 1)
      pl.add_mesh(pv.Box(level=4), show_edges=True)  # QUAD cells
  
      pl.show(auto_close=False, interactive=False)
  
      width, height = pl.window_size
  
      # Activate picking
      pl.iren._simulate_keypress("r")
  
      # select just the left-hand side
      pl.iren._mouse_left_button_press(width // 4, height // 2)
      pl.iren._mouse_left_button_release(width // 2, height)
  
      assert n_cells[0]
      assert pl.picked_cells
      assert pl.picked_cells.get_cell(0).type == pv.CellType.TRIANGLE
  
      # select just the right-hand side
      pl.iren._mouse_left_button_press(width - width // 4, height // 2)
      pl.iren._mouse_left_button_release(width, height)
  
      assert n_cells[0]
      assert pl.picked_cells
      assert pl.picked_cells.get_cell(0).type == pv.CellType.QUAD
  
imports: import os
  import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista.plotting.errors import PyVistaPickingError
label_desc: Use image node_id 8 for calling a global function with example usage: test_cell_picking_interactive_subplot() without return types