code: def test_scraper():
      from plotly.io._sg_scraper import plotly_sg_scraper
  
      # test that monkey-patching worked ok
      assert plotly.io.renderers.default == "sphinx_gallery_png"
      # Use dummy values for arguments of plotly_sg_scraper
      block = ""  # we don't need actually code
      import tempfile
  
      tempdir = tempfile.mkdtemp()
      gallery_conf = {"src_dir": tempdir, "examples_dirs": here}
      names = iter(["0", "1", "2"])
      block_vars = {
          "image_path_iterator": names,
          "src_file": os.path.join(here, "plot_example.py"),
      }
      execute_plotly_example()
      res = plotly_sg_scraper(block, block_vars, gallery_conf)
      shutil.rmtree(tempdir)
      assert ".. raw:: html" in res
  
imports: import plotly
  import os
  import shutil
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_scraper() without return types