code: def __init__(self, decoder_output):
      super().__init__()
      self.cur_length = 0
      self.decoder_output = decoder_output
  
file_path: fastNLP/tests/modules/torch/generator/test_seq2seq_generator.py
imports: import pytest
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH
label_desc: Use image node_id 1 to create a new GreedyDummyDecoder object from inherited base classes: Seq2SeqDecoder with example: obj = GreedyDummyDecoder(decoder_output)