code: def test_trame_jupyter_custom_size():
      w, h = 200, 150
      plotter = pv.Plotter(notebook=True, window_size=(w, h))
      _ = plotter.add_mesh(pv.Cone())
      widget = plotter.show(jupyter_backend="trame", return_viewer=True)
      html = widget.value
      assert f"width: {w}px" in html
      assert f"height: {h}px" in html
  
      plotter = pv.Plotter(notebook=True)
      plotter.window_size = (w, h)
      _ = plotter.add_mesh(pv.Cone())
      widget = plotter.show(jupyter_backend="trame", return_viewer=True)
      html = widget.value
      assert f"width: {w}px" in html
      assert f"height: {h}px" in html
  
      # Make sure that if size is default theme, it uses 99%/600px
      previous_size = pv.global_theme.window_size
      pv.global_theme.window_size = pv.themes.Theme().window_size
      try:
          plotter = pv.Plotter(notebook=True)
          _ = plotter.add_mesh(pv.Cone())
          widget = plotter.show(
              jupyter_backend="trame", return_viewer=True
          )
          html = widget.value
          assert "width: 99%" in html
          assert "height: 600px" in html
      finally:
          pv.global_theme.window_size = previous_size
  
imports: import os
  from IPython.display import IFrame
  import numpy
  import pytest
  import pyvista
  from pyvista import examples
label_desc: Use image node_id 10 for calling a global function with example usage: test_trame_jupyter_custom_size() without return types