def print_dict(dict_name, dict_value, logger: Logger = None):
if logger is None:<EOL><INDENT>print(dict_name + '<STR_LIT>')<EOL>try:<EOL><INDENT>from pprint import pprint<EOL>pprint(dict_value)<EOL><DEDENT>except:<EOL><INDENT>print(dict_value)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>logger.info(dict_name + '<STR_LIT>')<EOL>try:<EOL><INDENT>from pprint import pformat<EOL>logger.info(pformat(dict_value))<EOL><DEDENT>except:<EOL><INDENT>logger.info(dict_value)<EOL><DEDENT><DEDENT>
Utility method to print a named dictionary

:param dict_name:
:param dict_value:
:return: