code: def reorder_state(self, indices: "torch.LongTensor"):
      self.decoder.decoder_output = self._reorder_state(
          self.decoder.decoder_output, indices, dim=0
      )
  
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 DummyState obj's underlying member method code with example usage: obj.reorder_state(indices) without return types