def METHOD_NAME():
    try:
        __warningregistry__
    except NameError:
        pass
    else:
        for key in __warningregistry__.keys():
            _, cls, _ = key
            if cls is CarbonWarning:
                del __warningregistry__[key]