def METHOD_NAME(self):
    image_processor = self.get_image_processor()
    tokenizer = self.get_tokenizer()
    processor = Blip2Processor(tokenizer=tokenizer, image_processor=image_processor)
    input_str = "lower newer"
    image_input = self.prepare_image_inputs()
    inputs = processor(text=input_str, images=image_input)
    self.assertListEqual(list(inputs.keys()), ["pixel_values", "input_ids", "token_type_ids"])
    # test if it raises when no input is passed
    with pytest.raises(ValueError):
        processor()