class_docstr: Base class for LIT datasets.
docstr: Return a spec describing dataset elements.
docstr_tok: ["Return","a","spec","describing","dataset","elements","."]
code: def spec(self) -> Spec:
      """Return a spec describing dataset elements."""
      return self._spec
  
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 6 for calling the Dataset obj's underlying member method code with example usage: obj.spec() and returns: self