def METHOD_NAME(message : Message,
                             data : bytes,
                             decode_choices : bool,
                             single_line : bool,
                             allow_truncated : bool = False) -> str:
    try:
        unpacked_message = message.unpack_container(data,
                                                    allow_truncated=allow_truncated)
        decoded_message = message.decode_container(data,
                                                   decode_choices=True,
                                                   scaling=True,
                                                   allow_truncated=allow_truncated)
    except Exception as e:
        return ' ' + str(e)
    if single_line:
        return _format_container_single_line(message,
                                             unpacked_message,
                                             decoded_message)
    else:
        return _format_container_multi_line(message,
                                            unpacked_message,
                                            decoded_message)