code: def __init__(self, decoder):
      super().__init__()
      self.decoder = decoder
  
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 DummyState object from inherited base classes: State with example: obj = DummyState(decoder)