def METHOD_NAME(self):
    # test resample_line
    line = np.array([[0, 0], [0, 1], [0, 3], [0, 4], [0, 7], [0, 8]])
    resampled_line = self.loss._resample_line(line, 3)
    self.assertEqual(len(resampled_line), 3)
    self.assertTrue(
        np.allclose(resampled_line, np.array([[0, 0], [0, 4], [0, 8]])))
    line = np.array([[0, 0], [0, 0]])
    resampled_line = self.loss._resample_line(line, 4)
    self.assertEqual(len(resampled_line), 4)
    self.assertTrue(
        np.allclose(resampled_line,
                    np.array([[0, 0], [0, 0], [0, 0], [0, 0]])))