def METHOD_NAME(self):
    image_processor = self.get_image_processor()
    tokenizer = self.get_tokenizer()
    processor = MiniGPT4Processor(tokenizer=tokenizer, image_processor=image_processor)
    input_str = ["lower newer"]
    encoded_processor = processor.process_texts(texts=input_str, return_tensors="np")
    first_texts = "###Human: <Img>"
    second_texts = "</Img> lower newer###Assistant: "
    first_text_encoding = tokenizer(
        text=first_texts,
        return_tensors="np",
        add_special_tokens=True,
    )
    second_text_encoding = tokenizer(
        text=second_texts,
        return_tensors="np",
        add_special_tokens=False,
    )
    encoded_tok = {
        "first_input_ids": first_text_encoding["input_ids"],
        "first_attention_mask": first_text_encoding["attention_mask"],
        "second_input_ids": second_text_encoding["input_ids"],
        "second_attention_mask": second_text_encoding["attention_mask"],
    }
    for key in encoded_tok.keys():
        self.assertListEqual(encoded_tok[key].tolist(), encoded_processor[key].tolist())