code: def constraint_decoding(self, src_sentence, tgt_generated):
      if self.source_prefix_tokenized:
          # Remove Source Prefix for Generation
          src_sentence = src_sentence[
              len(self.source_prefix_tokenized) :
          ]
  
      valid_token_ids = self.get_state_valid_tokens(
          src_sentence.tolist(), tgt_generated.tolist()
      )
  
      return valid_token_ids
  
file_path: DeepKE/src/deepke/name_entity_re/cross/seq2seq/constraint_decoder/constraint_decoder.py
imports: from collections import defaultdict
  import os
  from typing import List
label_desc: Use image node_id 3 for calling the ConstraintDecoder obj's underlying member method code with example usage: obj.constraint_decoding(src_sentence, tgt_generated) and returns: valid_token_ids