class_docstr: Base class for LIT datasets.
docstr: Save newly-created datapoints to disk in a dataset-specific format.
  
  Subclasses should override this method if they wish to save new, persisted
  datapoints in their own file format in addition to the LIT-specific format
  they are already saved in.
  
  Args:
    examples: A list of datapoints to save.
    path: The path to save the datapoints to.
  
  Returns:
    (string) The path to the saved data, or None if unimplemented.
docstr_tok: ["Save","newly-created","datapoints","to","disk","in","a","dataset-specific","format",".","Subclasses","should","override","this","method","if","they","wish","to","save","new",",","persisted","datapoints","in","their","own","file","format","in","addition","to","the","LIT-specific","format","they","are","already","saved","in",".","Args",":","examples",":","A","list","of","datapoints","to","save",".","path",":","The","path","to","save","the","datapoints","to",".","Returns",":","(","string",")","The","path","to","the","saved","data",",","or","None","if","unimplemented","."]
code: def save(self, examples: list[IndexedInput], path: str):
      """Save newly-created datapoints to disk in a dataset-specific format.
  
      Subclasses should override this method if they wish to save new, persisted
      datapoints in their own file format in addition to the LIT-specific format
      they are already saved in.
  
      Args:
        examples: A list of datapoints to save.
        path: The path to save the datapoints to.
  
      Returns:
        (string) The path to the saved data, or None if unimplemented.
      """
      if self._base is not None:
          return self._base.save(examples, path)
      pass
  
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 5 for calling the Dataset obj's underlying member method code with example usage: obj.save(examples, path) and returns: self