code: def test_pt_flax_equivalence(self):
      config_inputs_dict = self.prepare_config_and_inputs()
      vision_config = config_inputs_dict.pop("vision_config")
      text_config = config_inputs_dict.pop("text_config")
  
      inputs_dict = config_inputs_dict
  
      self.check_equivalence_pt_to_flax(
          vision_config, text_config, inputs_dict
      )
      self.check_equivalence_flax_to_pt(
          vision_config, text_config, inputs_dict
      )
  
imports: import collections
  import tempfile
  import unittest
  import numpy
  from transformers.testing_utils import is_pt_flax_cross_test, require_flax, require_torch, require_vision, slow, torch_device
  from transformers.utils import is_flax_available, is_torch_available, is_vision_available
  from ...test_modeling_flax_common import floats_tensor, ids_tensor, random_attention_mask
  from ..bert.test_modeling_flax_bert import FlaxBertModelTester
  from ..clip.test_modeling_flax_clip import FlaxCLIPVisionModelTester
  from ..vit.test_modeling_flax_vit import FlaxViTModelTester
label_desc: Use image node_id 16 for calling the VisionTextDualEncoderMixin obj's underlying member method code with example usage: obj.test_pt_flax_equivalence() without return types