@staticmethod
def _escape_unicode_char_xuU(c, ord=ord):
    """
        Escape a Unicode code point using `\\xHH` (8-bit), `\\uHHHH` (16-bit),
        or `\\UHHHHHHHH` (24-bit) notation.
        """
    n = ord(c)
    if n < 256:
        return '\\x{0:02x}'.format(n)
    elif n < 65536:
        return '\\u{0:04x}'.format(n)
    return '\\U{0:08x}'.format(n)
