class_docstr: Base class for datasets that are stored in a local file.
  
  Small datasets that are part of the river package inherit from this class.
  
  Parameters
  ----------
  filename
      The file's name.
  directory
      The directory where the file is contained. Defaults to the location of the `datasets`
      module.
  desc
      Extra dataset parameters to pass as keyword arguments.
class_docstr_tok: ["Base","class","for","datasets","that","are","stored","in","a","local","file",".","Small","datasets","that","are","part","of","the","river","package","inherit","from","this","class",".","Parameters","--","--","--","--","--","filename","The","file","'s","name",".","directory","The","directory","where","the","file","is","contained",".","Defaults","to","the","location","of","the","`","datasets","`","module",".","desc","Extra","dataset","parameters","to","pass","as","keyword","arguments","."]
code: def __init__(self, filename, directory=None, **desc):
      super().__init__(**desc)
      self.filename = filename
      self.directory = directory
  
imports: from __future__ import annotations
  import abc
  import inspect
  import itertools
  import os
  import pathlib
  import re
  import shutil
  import tarfile
  import typing
  import zipfile
  from urllib import request
  from river import utils
label_desc: Use image node_id 1 to create a new FileDataset object from inherited base classes: Dataset with example: obj = FileDataset(filename, directory)