def METHOD_NAME(self) -> None:
    x = torch.zeros([1, 1, 1, 1, 1])
    rearrange(x, 'a b c d ... ->  a b c ... d')
    with self.assertRaises(ValueError):
        rearrange(x, 'a b c d (...) ->  a b c ... d')
    rearrange(x, '... ->  (...)')
    with self.assertRaises(ValueError):
        rearrange(x, '(...) -> (...)')