def pprnt(input, return_data=False):
HEADER = '<STR_LIT>'<EOL>OKBLUE = '<STR_LIT>'<EOL>OKGREEN = '<STR_LIT>'<EOL>WARNING = '<STR_LIT>'<EOL>FAIL = '<STR_LIT>'<EOL>ENDC = '<STR_LIT>'<EOL>BOLD = '<STR_LIT>'<EOL>UNDERLINE = '<STR_LIT>'<EOL>import json, re<EOL>result = json.dumps(input, sort_keys=True, indent=<NUM_LIT:4>)<EOL>result = re.sub(r'<STR_LIT>', r'<STR_LIT>' % (BOLD, HEADER, ENDC), result)<EOL>result = re.sub(r'<STR_LIT>', r'<STR_LIT>' % (BOLD, HEADER, ENDC), result)<EOL>result = re.sub(r'<STR_LIT>', r'<STR_LIT>' % (BOLD, OKGREEN, ENDC), result)<EOL>if not return_data:<EOL><INDENT>print(result)<EOL><DEDENT>else:<EOL><INDENT>return result<EOL><DEDENT>
Prettier print for nested data

Args:
    input: Input data
    return_data (bool): Default False. Print outs if False, returns if True.
Returns:
    None | Pretty formatted text representation of input data.