class_docstr: Apply a fixed permutation to the pixels of the given image.
  
  Works with both Tensors and PIL images. Returns an object of the same type
  of the input element.
code: def __init__(self, index_permutation: Sequence[int]):
      self.permutation = index_permutation
      self._to_tensor = ToTensor()
      self._to_image = ToPILImage()
  
file_path: avalanche/avalanche/benchmarks/classic/comniglot.py
imports: from pathlib import Path
  from typing import Optional, Sequence, Any, Union
  from torch import Tensor
  from torchvision.transforms import ToTensor, Compose, Normalize, ToPILImage
  from PIL.Image import Image
  from avalanche.benchmarks import nc_benchmark
  from avalanche.benchmarks.classic.classic_benchmarks_utils import check_vision_benchmark
  from avalanche.benchmarks.datasets import default_dataset_location
  from avalanche.benchmarks.datasets.omniglot import Omniglot
label_desc: Use image node_id 1 to create a new PixelsPermutation object from inherited base classes: object with example: obj = PixelsPermutation(index_permutation)