class_docstr: Rearrange layer behaves identically to einops.rearrange operation.
  
  :param pattern: str, rearrangement pattern
  :param axes_lengths: any additional specification of dimensions
  
  See einops.rearrange for source_examples.
class_docstr_tok: ["Rearrange","layer","behaves","identically","to","einops.rearrange","operation",".",":","param","pattern",":","str",",","rearrangement","pattern",":","param","axes_lengths",":","any","additional","specification","of","dimensions","See","einops.rearrange","for","source_examples","."]
code: def __init__(self, pattern: str, **axes_lengths: Any) -> None:
      super().__init__()
      self.pattern = pattern
      self.axes_lengths = axes_lengths
      # self._recipe = self.recipe()  # checking parameters
      self._multirecipe = self.multirecipe()
      self._axes_lengths = tuple(self.axes_lengths.items())
  
file_path: einops/einops/layers/__init__.py
imports: from typing import Any, Dict
  from ..einops import TransformRecipe, _apply_recipe, _prepare_recipes_for_all_dims, get_backend
  from ..None import EinopsError
label_desc: Use image node_id 1 to create a new RearrangeMixin object  with example: obj = RearrangeMixin(pattern)