def METHOD_NAME(name=None):
    """
    Returns the named quote engine, or the default quoter if name is not given.
    """
    warnings.warn(deprecated_func_warning % {'replace': 'quote', 'old': '_get_markup_quoter'},
                  DeprecationWarning)
    name = name or PYBB_MARKUP
    engine = _MARKUP_ENGINES_QUOTERS.get(name)
    if engine:
        return engine
    if name not in PYBB_QUOTE_ENGINES:
        engine = BaseParser().quote
    else:
        engine = PYBB_QUOTE_ENGINES[name]
        if isinstance(engine, str):
            # This is a path, import it
            engine = resolve_class(engine).quote
    _MARKUP_ENGINES_QUOTERS[name] = engine
    return engine