code: def _create_fake_gallery_conf(src_dir):
      gallery_conf = {}
      gallery_conf.update(DEFAULT_GALLERY_CONF)
      gallery_conf.update(
          {
              "compress_images": "images",
              "compress_images_args": [],
              "src_dir": src_dir,
              "gallery_dirs": src_dir,
          }
      )
      return gallery_conf
  
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 2 for calling a global function with example usage: _create_fake_gallery_conf(src_dir) and returns: gallery_conf