code: def test_collapsed_ellipsis_errors_out(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, "(...) -> (...)")
  
file_path: pytorch/test/functorch/test_rearrange.py
imports: from typing import List, Tuple
  import numpy
  import torch
  from functorch.einops import rearrange
  from torch.testing._internal.common_utils import TestCase, run_tests
label_desc: Use image node_id 1 for calling the TestRearrange obj's underlying member method code with example usage: obj.test_collapsed_ellipsis_errors_out() without return types