def METHOD_NAME(name, *args, **kwargs):
    if name not in deprecations:
        # this should (hopefully) never happen
        raise RuntimeError("Error showing deprecation warning: {}".format(name))
    deprecations[name].show(*args, **kwargs)