def METHOD_NAME(d, remove_keys=()):
    if "__loader__" in d:
        d = dict(d)
        if str is bytes:
            del d["__loader__"]
        else:
            d["__loader__"] = "<__loader__ removed>"
    if "__file__" in d:
        d = dict(d)
        d["__file__"] = "<__file__ removed>"
    if "__compiled__" in d:
        d = dict(d)
        del d["__compiled__"]
    for remove_key in remove_keys:
        if remove_key in d:
            d = dict(d)
            del d[remove_key]
    return pprint.pformat(d)