code: def debug_config_cli(
      # fmt: off
      ctx: typer.Context,  # This is only used to read additional arguments
      config_path: Path = Arg(..., help="Path to config file", exists=True, allow_dash=True),
      code_path: Optional[Path] = Opt(None, "--code-path", "--code", "-c", help="Path to Python file with additional code (registered functions) to be imported"),
      show_funcs: bool = Opt(False, "--show-functions", "-F", help="Show an overview of all registered functions used in the config and where they come from (modules, files etc.)"),
      show_vars: bool = Opt(False, "--show-variables", "-V", help="Show an overview of all variables referenced in the config and their values. This will also reflect variables overwritten on the CLI.")
      # fmt: on
  ):
      """Debug a config file and show validation errors. The command will
      create all objects in the tree and validate them. Note that some config
      validation errors are blocking and will prevent the rest of the config from
      being resolved. This means that you may not see all validation errors at
      once and some issues are only shown once previous errors have been fixed.
      Similar as with the 'train' command, you can override settings from the config
      as command line options. For instance, --training.batch_size 128 overrides
      the value of "batch_size" in the block "[training]".
  
      DOCS: https://spacy.io/api/cli#debug-config
      """
      overrides = parse_config_overrides(ctx.args)
      import_code(code_path)
      debug_config(
          config_path,
          overrides=overrides,
          show_funcs=show_funcs,
          show_vars=show_vars,
      )
  
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 1 for calling a global function with example usage: debug_config_cli(ctx, config_path, code_path, show_funcs, show_vars) without return types