def METHOD_NAME(self, rhs: Tensor) -> None:
    if rhs.shape[-2] != self.shape[-1]:
        raise ValueError(
            f"{rhs.shape[0] = } incompatible with first dimensions of"
            f"permutation operator with shape {self.shape}."
        )