code: def check_equivalence_flax_to_pt(
      self, config, decoder_config, inputs_dict
  ):
      encoder_decoder_config = (
          EncoderDecoderConfig.from_encoder_decoder_configs(
              config, decoder_config
          )
      )
  
      pt_model = EncoderDecoderModel(encoder_decoder_config)
      fx_model = FlaxEncoderDecoderModel(encoder_decoder_config)
  
      pt_model = load_flax_weights_in_pytorch_model(
          pt_model, fx_model.params
      )
  
      self.check_pt_flax_equivalence(pt_model, fx_model, inputs_dict)
  
imports: import tempfile
  import unittest
  import numpy
  from transformers import is_flax_available, is_torch_available
  from transformers.testing_utils import is_pt_flax_cross_test, require_flax, slow, torch_device
  from ...test_modeling_flax_common import ids_tensor
  from ..bart.test_modeling_flax_bart import FlaxBartStandaloneDecoderModelTester
  from ..bert.test_modeling_flax_bert import FlaxBertModelTester
  from ..gpt2.test_modeling_flax_gpt2 import FlaxGPT2ModelTester
label_desc: Use image node_id 12 for calling the FlaxEncoderDecoderMixin obj's underlying member method code with example usage: obj.check_equivalence_flax_to_pt(config, decoder_config, inputs_dict) without return types