code: def get_variables(config: Config) -> Dict[str, Any]:
      result = {}
      for variable in sorted(set(VARIABLE_RE.findall(config.to_str()))):
          path = variable[2:-1].replace(":", ".")
          value = util.dot_to_object(config, path)
          result[variable] = repr(value)
      return result
  
file_path: spaCy/spacy/cli/debug_config.py
imports: from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  import typer
  from thinc.api import Config
  from thinc.config import VARIABLE_RE
  from wasabi import msg, table
  from ..None import util
  from ..schemas import ConfigSchemaInit, ConfigSchemaTraining
  from ..util import registry
  from ._util import Arg, Opt, debug_cli, import_code, parse_config_overrides, show_validation_error
label_desc: Use image node_id 4 for calling a global function with example usage: get_variables(config) and returns: result