code: def show_validation_error(
      file_path: Optional[Union[str, Path]] = None,
      *,
      title: Optional[str] = None,
      desc: str = "",
      show_config: Optional[bool] = None,
      hint_fill: bool = True,
  ):
      """Helper to show custom config validation errors on the CLI.
  
      file_path (str / Path): Optional file path of config file, used in hints.
      title (str): Override title of custom formatted error.
      desc (str): Override description of custom formatted error.
      show_config (bool): Whether to output the config the error refers to.
      hint_fill (bool): Show hint about filling config.
      """
      try:
          yield
      except ConfigValidationError as e:
          title = title if title is not None else e.title
          if e.desc:
              desc = f"{e.desc}" if not desc else f"{e.desc}\n\n{desc}"
          # Re-generate a new error object with overrides
          err = e.from_error(
              e, title="", desc=desc, show_config=show_config
          )
          msg.fail(title)
          print(err.text.strip())
          if hint_fill and "value_error.missing" in err.error_types:
              config_path = (
                  file_path
                  if file_path is not None and str(file_path) != "-"
                  else "config.cfg"
              )
              msg.text(
                  "If your config contains missing values, you can run the 'init "
                  "fill-config' command to fill in all the defaults, if possible:",
                  spaced=True,
              )
              print(
                  f"{COMMAND} init fill-config {config_path} {config_path} \n"
              )
          sys.exit(1)
      except InterpolationError as e:
          msg.fail("Config validation error", e, exits=1)
  
imports: import hashlib
  import os
  import shutil
  import sys
  from configparser import InterpolationError
  from contextlib import contextmanager
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Tuple, Union, overload
  import srsly
  import typer
  from click import NoSuchOption
  from click.parser import split_arg_string
  from thinc.api import Config, ConfigValidationError, require_gpu
  from thinc.util import gpu_is_available
  from typer.main import get_command
  from wasabi import Printer, msg
  from weasel import app
  from ..None import about
  from ..compat import Literal
  from ..schemas import validate
  from ..util import ENV_VARS, SimpleFrozenDict, import_file, is_compatible_version, logger, make_tempdir, registry, run_command
label_desc: Use image node_id 5 for calling a global function with example usage: show_validation_error(file_path) without return types