code: def decode(self, tokens, state):
      self.cur_length += 1
      scores = self.decoder_output[:, self.cur_length]
      return scores
  
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 2 for calling the GreedyDummyDecoder obj's underlying member method code with example usage: obj.decode(tokens, state) and returns: scores