code: def test_iren_context_style(pl):
      chart = pv.Chart2D(size=(0.5, 0.5), loc=(0.5, 0.5))
      win_size = pl.window_size
      pl.add_chart(chart)
      pl.show(
          auto_close=False
      )  # We need to plot once to let the charts compute their true geometry
      style = pl.iren._style
      style_class = pl.iren._style_class
  
      # Simulate double left click on the chart:
      pl.iren._mouse_left_button_click(
          int(0.75 * win_size[0]), int(0.75 * win_size[1]), count=2
      )
      assert chart.GetInteractive()
      assert pl.iren._style == "Context"
      assert pl.iren._style_class == pl.iren._context_style
      assert (
          pl.iren._context_style.GetScene().__this__
          == chart._scene.__this__
      )
  
      # Simulate double left click outside the chart:
      pl.iren._mouse_left_button_click(0, 0, count=2)
      assert not chart.GetInteractive()
      assert pl.iren._style == style
      assert pl.iren._style_class == style_class
      assert pl.iren._context_style.GetScene() is None
  
imports: import itertools
  import platform
  import weakref
  import numpy
  import pytest
  from vtkmodules.vtkRenderingContext2D import vtkPen
  import pyvista
  from pyvista import examples
  from pyvista.plotting import charts
  from pyvista.plotting.colors import COLOR_SCHEMES
label_desc: Use image node_id 48 for calling a global function with example usage: test_iren_context_style(pl) without return types