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"
    image_input = self.prepare_image_inputs()
    inputs = processor(text=input_str, images=image_input)
    self.assertListEqual(
        list(inputs.keys()),
        ["input_ids", "attention_mask", "qformer_input_ids", "qformer_attention_mask", "pixel_values"],
    )
    # test if it raises when no input is passed
    with pytest.raises(ValueError):
        processor()