def print_debug_info(
    settings: Settings | LazySettings,
    *,
    dumper: DumperPreset | DumperType | None = None,
    verbosity: int = 0,
    key: str | None = None,
):
    """Calls dumper with settings debug info"""
    dumper = dumper or "yaml"
    if isinstance(dumper, str):
        dumper = builtin_dumpers.get(dumper)
        if dumper is None:
            raise OutputFormatError(
                f"The desired format is not available: {dumper!r}"
            )

    data = get_debug_info(settings, verbosity, key)
    dumper(data, sys.stdout)
Calls dumper with settings debug info
dynaconf/utils/inspect.py