code: def _create_fake_block_vars(canvas):
      block_vars = {
          "example_globals": {
              "canvas": canvas,
          },
          "src_file": "example.py",
          "image_path_iterator": (f"{x}.png" for x in range(10)),
      }
      return block_vars
  
file_path: vispy/vispy/util/tests/test_gallery_scraper.py
imports: import os
  from vispy.testing import TestingCanvas, requires_application
  import pytest
  from ..gallery_scraper import VisPyGalleryScraper
label_desc: Use image node_id 1 for calling a global function with example usage: _create_fake_block_vars(canvas) and returns: block_vars