class_docstr: Base class for LIT datasets.
docstr: Syntactic sugar, allows dataset.slice[i:j] to return a new Dataset.
docstr_tok: ["Syntactic","sugar",",","allows","dataset.slice","[","i",":","j","]","to","return","a","new","Dataset","."]
code: def slice(self):
      """Syntactic sugar, allows dataset.slice[i:j] to return a new Dataset."""
  
      def _slicer(slice_obj):
          return Dataset(examples=self.examples[slice_obj], base=self)
  
      return SliceWrapper(_slicer)
  
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 9 for calling the Dataset obj's underlying member method code with example usage: obj.slice() and returns: SliceWrapper, Dataset