What textwrap.dedent should have been
Inspect indents of your files.
Converts an indented text or list of strings into a nested dictionary structure based on the indentation levels.
A lightweight nested printing, for all your function within loops within function needs
⬅️ Dedent and format source code strings into their intended human-readable strings.