code: def get_default_config_value(key):
      def default_getter(conf):
          return conf["sphinx_gallery_conf"].get(
              key, DEFAULT_GALLERY_CONF[key]
          )
  
      return default_getter
  
file_path: tensorly/doc/sphinx_ext/sphinx_gallery/gen_gallery.py
imports: from __future__ import division, print_function, absolute_import
  import codecs
  import copy
  import re
  import os
  from .None import glr_path_static
  from .None import sphinx_compatibility
  from .gen_rst import generate_dir_rst, SPHX_GLR_SIG
  from .docs_resolv import embed_code_links
  from .downloads import generate_zipfiles
label_desc: Use image node_id 8 for calling a global function with example usage: get_default_config_value(key) and returns: default_getter, conf