code: def fmt_repr(obj):
    
    items = {k: v for k, v in list(obj.__dict__.items())}
    return "<%s: {%s}>" % (obj.__class__.__name__, pprint.pformat(items, width=1))
docs: Return pretty printed string representation of an object.