def quote_with_backticks(identifier):
    """Quote the given identifier with backticks, converting backticks (`) in
    the identifier name with the correct escape sequence (``).

    identifier[in] identifier to quote.

    Returns string with the identifier quoted with backticks.
    """
    return "`" + identifier.replace("`", "``") + "`"