def METHOD_NAME(
    self,
    config: LayoutLMv2Config,
    input_ids: Tensor,
    position_ids: Tensor,
    attention_mask: Tensor,
    bbox: Tensor,
    image: Tensor,
    sequence_labels: Tensor,
    token_labels: Tensor,
):
    model = LayoutLMv2Model(config)
    model.eval()
    result = model(input_ids, attention_mask=attention_mask, position_ids=position_ids, bbox=bbox, image=image)
    self.parent.assertEqual(result[0].shape, [self.batch_size, self.seq_length + 49, self.hidden_size])
    self.parent.assertEqual(result[1].shape, [self.batch_size, self.hidden_size])