def METHOD_NAME(self):
    image_processor = self.get_image_processor()
    tokenizer = self.get_tokenizer()
    qformer_tokenizer = self.get_qformer_tokenizer()
    processor = InstructBlipProcessor(
        tokenizer=tokenizer, image_processor=image_processor, qformer_tokenizer=qformer_tokenizer
    )
    input_str = "lower newer"
    encoded_processor = processor(text=input_str)
    encoded_tokens = tokenizer(input_str, return_token_type_ids=False)
    encoded_tokens_qformer = qformer_tokenizer(input_str, return_token_type_ids=False)
    for key in encoded_tokens.keys():
        self.assertListEqual(encoded_tokens[key], encoded_processor[key])
    for key in encoded_tokens_qformer.keys():
        self.assertListEqual(encoded_tokens_qformer[key], encoded_processor["qformer_" + key])