def METHOD_NAME(cls, filter_name):
    """Unregister the given filter from the class."""
    # Is the item registered?
    if filter_name not in cls._filters:
        # If not, raise an error
        raise NameError(
            '{0} cannot unregister filter "{1}".  Filter is '
            'not registered.'.format(cls.__name__, filter_name))
    # Remove the filter from the dictionary
    del cls._filters[filter_name]