def METHOD_NAME(self):
    img_size = (3, 10)
    text_polys = [
        np.array([0, 0, 1, 0, 1, 1, 0, 1]),
        np.array([2, 0, 3, 0, 3, 1, 2, 1])
    ]
    output = self.loss._generate_text_region_mask(img_size, text_polys)
    target = np.array([[1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
                       [1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
                       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])
    self.assertTrue(np.allclose(output, target))