code: def omniglot(
      folder,
      shots,
      ways,
      shuffle=True,
      test_shots=None,
      seed=None,
      **kwargs,
  ):
      """Helper function to create a meta-dataset for the Omniglot dataset.
  
      Parameters
      ----------
      folder : string
          Root directory where the dataset folder `omniglot` exists.
  
      shots : int
          Number of (training) examples per class in each task. This corresponds
          to `k` in `k-shot` classification.
  
      ways : int
          Number of classes per task. This corresponds to `N` in `N-way`
          classification.
  
      shuffle : bool (default: `True`)
          Shuffle the examples when creating the tasks.
  
      test_shots : int, optional
          Number of test examples per class in each task. If `None`, then the
          number of test examples is equal to the number of training examples per
          class.
  
      seed : int, optional
          Random seed to be used in the meta-dataset.
  
      kwargs
          Additional arguments passed to the `Omniglot` class.
  
      See also
      --------
      `datasets.Omniglot` : Meta-dataset for the Omniglot dataset.
      """
      defaults = {
          "transform": Compose([Resize(28), ToTensor()]),
          "class_augmentations": [Rotation([90, 180, 270])],
      }
  
      return helper_with_default(
          Omniglot,
          folder,
          shots,
          ways,
          shuffle=shuffle,
          test_shots=test_shots,
          seed=seed,
          defaults=defaults,
          **kwargs,
      )
  
file_path: pytorch-meta/torchmeta/datasets/helpers.py
imports: import warnings
  from torchmeta.datasets import Omniglot, MiniImagenet, TieredImagenet, CIFARFS, FC100, CUB, DoubleMNIST, TripleMNIST, Pascal5i
  from torchmeta.transforms import Categorical, ClassSplitter, Rotation, SegmentationPairTransform
  from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor
label_desc: Use image node_id 2 for calling a global function with example usage: omniglot(folder, shots, ways, shuffle, test_shots, seed) and returns: helper_with_default