class_docstr: An RNN Decoder abstract interface object.
  
  Concepts used by this interface:
  - `inputs`: (structure of) tensors and TensorArrays that is passed as input
    to the RNN cell composing the decoder, at each time step.
  - `state`: (structure of) tensors and TensorArrays that is passed to the
    RNN cell instance as the state.
  - `finished`: boolean tensor telling whether each sequence in the batch is
    finished.
  - `training`: boolean whether it should behave in training mode or in
    inference mode.
  - `outputs`: instance of `tfa.seq2seq.BasicDecoderOutput`. Result of the decoding, at
    each time step.
class_docstr_tok: ["An","RNN","Decoder","abstract","interface","object",".","Concepts","used","by","this","interface",":","-","`","inputs","`",":","(","structure","of",")","tensors","and","TensorArrays","that","is","passed","as","input","to","the","RNN","cell","composing","the","decoder",",","at","each","time","step",".","-","`","state","`",":","(","structure","of",")","tensors","and","TensorArrays","that","is","passed","to","the","RNN","cell","instance","as","the","state",".","-","`","finished","`",":","boolean","tensor","telling","whether","each","sequence","in","the","batch","is","finished",".","-","`","training","`",":","boolean","whether","it","should","behave","in","training","mode","or","in","inference","mode",".","-","`","outputs","`",":","instance","of","`","tfa.seq2seq.BasicDecoderOutput","`",".","Result","of","the","decoding",",","at","each","time","step","."]
code: def finalize(self, outputs, final_state, sequence_lengths):
      raise NotImplementedError
  
imports: import abc
  import tensorflow
  from tensorflow_addons.utils.types import TensorLike
  from typeguard import typechecked
  from typing import Any, Optional, Tuple, Union
  from tensorflow.python.ops import control_flow_util
label_desc: Use image node_id 6 for calling the Decoder obj's underlying member method code with example usage: obj.finalize(outputs, final_state, sequence_lengths) without return types