<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def decode_sequence(self, source_encoded: mx.sym.Symbol, source_encoded_lengths: mx.sym.Symbol, source_encoded_max_length: int, target_embed: mx.sym.Symbol, target_embed_lengths: mx.sym.Symbol, target_embed_max_length: int) -> mx.sym.Symbol: """ Decodes a sequence of embedded target words and returns sequence of last decoder representations for each time step. :param source_encoded: Encoded source: (batch_size, source_encoded_max_length, encoder_depth). :param source_encoded_lengths: Lengths of encoded source sequences. Shape: (batch_size,). :param source_encoded_max_length: Size of encoder time dimension. :param target_embed: Embedded target sequence. Shape: (batch_size, target_embed_max_length, target_num_embed). :param target_embed_lengths: Lengths of embedded target sequences. Shape: (batch_size,). :param target_embed_max_length: Dimension of the embedded target sequence. :return: Decoder data. Shape: (batch_size, target_embed_max_length, decoder_depth). """

        pass