def METHOD_NAME(self) -> None:
    self.loss = TextSnakeModuleLoss()
    self.data_samples = [
        TextDetDataSample(
            metainfo=dict(img_shape=(3, 10)),
            gt_instances=InstanceData(
                polygons=np.array([
                    [0, 0, 1, 0, 1, 1, 0, 1],
                    [2, 0, 3, 0, 3, 1, 2, 1],
                ],
                                  dtype=np.float32),
                ignored=torch.BoolTensor([False, False])))
    ]
    self.preds = torch.rand((1, 5, 3, 10))