def _a_encode_long(value, mapping):
    """
    42 --> ('2', 'J', '42')
    """
    assert isinstance(value, int) and not isinstance(value, int
        ), 'VALUE has invalid type: %s' % type(value)
    value = str(value).encode('UTF-8')
    return str(len(value)).encode('UTF-8'), b'J', value
