code: def test_image_renderer():
      with mocked_scope() as scope:
          pio.show(
              fig, renderer="svg", engine="kaleido", validate=False
          )
  
      renderer = pio.renderers["svg"]
      scope.transform.assert_called_with(
          fig,
          format="svg",
          width=None,
          height=None,
          scale=renderer.scale,
      )
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/test_kaleido/test_kaleido.py
imports: import plotly.io
  import plotly.io.kaleido
  from contextlib import contextmanager
  from io import BytesIO
  from pathlib import Path
  from unittest.mock import Mock
label_desc: Use image node_id 9 for calling a global function with example usage: test_image_renderer() without return types