code: def test_svg_renderer_show(fig1):
      pio.renderers.default = "svg"
      pio.renderers["svg"].width = 400
      pio.renderers["svg"].height = 500
      pio.renderers["svg"].scale = 1
  
      with mock.patch("IPython.display.display") as mock_display:
          pio.show(fig1)
  
      # Check call args.
      # SVGs generated by orca are currently not reproducible so we just
      # check the mime type and that the resulting string is an SVG with the
      # expected size
      mock_call_args = mock_display.call_args
  
      mock_arg1 = mock_call_args[0][0]
      assert list(mock_arg1) == ["image/svg+xml"]
      assert mock_arg1["image/svg+xml"].startswith(
          '<svg class="main-svg" xmlns="http://www.w3.org/2000/svg" '
          'xmlns:xlink="http://www.w3.org/1999/xlink" '
          'width="400" height="500"'
      )
  
      mock_kwargs = mock_call_args[1]
      assert mock_kwargs == {"raw": True}
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_orca/test_image_renderers.py
imports: import base64
  import sys
  import json
  import pytest
  import numpy
  from plotly import io
  import plotly.graph_objs
  from plotly.offline.offline import _get_jconfig
label_desc: Use image node_id 3 for calling a global function with example usage: test_svg_renderer_show(fig1) without return types