class_docstr: Base class for LIT datasets.
docstr: Return a new dataset with randomized example order.
docstr_tok: ["Return","a","new","dataset","with","randomized","example","order","."]
code: def shuffle(self, seed=42):
      """Return a new dataset with randomized example order."""
      # random.shuffle will shuffle in-place; use sample to make a new list.
      return self.sample(n=len(self), seed=seed)
  
imports: from collections.abc import Callable, Mapping, Sequence
  import hashlib
  import glob
  import inspect
  import os
  import random
  import types
  from typing import Optional, Union, cast
  from absl import logging
  from lit_nlp.api import types
  from lit_nlp.lib import serialize
  from lit_nlp.lib import utils
label_desc: Use image node_id 12 for calling the Dataset obj's underlying member method code with example usage: obj.shuffle(seed) and returns: self