def METHOD_NAME(self):
    tokenizer = self.get_tokenizer()
    image_processor = self.get_image_processor()
    processor = VisionTextDualEncoderProcessor(tokenizer=tokenizer, image_processor=image_processor)
    processor.save_pretrained(self.tmpdirname)
    processor = VisionTextDualEncoderProcessor.from_pretrained(self.tmpdirname)
    self.assertEqual(processor.tokenizer.get_vocab(), tokenizer.get_vocab())
    self.assertIsInstance(processor.tokenizer, (BertTokenizer, BertTokenizerFast))
    self.assertEqual(processor.image_processor.to_json_string(), image_processor.to_json_string())
    self.assertIsInstance(processor.image_processor, ViTImageProcessor)